Click or drag to resize

StateMachineTryChangeState Method

Attempts to change the state of this machine from to .

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public bool TryChangeState(
	int prevState,
	int nextState
)
View Source

Parameters

prevState  Int32
The state to change from
nextState  Int32
The state to change to

Return Value

Boolean
True if the state changed from the previous state to the next state. False if unsuccessful.
See Also