FACT++  1.0
bool StateMachineImp::HasEvent ( const EventImp cmd)

Check whether an event (same pointer!) is in fListOfEvents

Returns
true if the event was found, false otherwise

Definition at line 478 of file StateMachineImp.cc.

References fListOfEvents, and fMutexEvt.

Referenced by StateMachineDim::commandHandler(), StateMachineDim::infoHandler(), and PostEvent().

479 {
480  // Find the event from the list of commands and queue it
481  const lock_guard<mutex> guard(fMutexEvt);
482  return find(fListOfEvents.begin(), fListOfEvents.end(), cmd)!=fListOfEvents.end();
483 }
std::vector< EventImp * > fListOfEvents
std::mutex fMutexEvt
Mutex to ensure thread-safe access to the command fifo.

+ Here is the caller graph for this function: