Documentation ¶
Overview ¶
A simple wrapper to have State changes based on atomic variable
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateMachine ¶
type StateMachine struct {
// contains filtered or unexported fields
}
func (*StateMachine) ChangeState ¶
func (stm *StateMachine) ChangeState(oldState, newState uint32) bool
func (*StateMachine) GetState ¶
func (stm *StateMachine) GetState() uint32
func (*StateMachine) SetState ¶
func (stm *StateMachine) SetState(newState uint32)
Click to show internal directories.
Click to hide internal directories.