FACT++
1.0
|
bool StateMachineImp::PostEvent | ( | const EventImp & | evt, |
const char * | ptr, | ||
size_t | siz | ||
) |
With this function commands are posted to the event queue. If the event loop has not yet been started with Run() the command is directly handled by HandleEvent.
Events posted when the state machine is in a negative state or kSM_FatalError are ignored.
A new event is created and its data contents initialized with the specified memory.
evt | The event to be posted. The precise contents depend on what the event should be for. |
ptr | pointer to the memory which should be attached to the event |
siz | size of the memory which should be attached to the event |
Definition at line 295 of file StateMachineImp.cc.
References fBufferEvents, GetCurrentState(), HandleEvent(), IsRunning(), kSM_FatalError, kYellow, Lock(), MessageImp::Out(), PushEvent(), and UnLock().