Return all event names of the StateMachine
- Returns
- A vector of strings with all event names of the state machine. The event names all have the SERVER/ pre-fix removed.
Definition at line 371 of file StateMachineImp.cc.
References fListOfEvents, fMutexEvt, fName, and i.
Referenced by IsQueueEmpty().
375 const string &name =
fName +
"/";
376 const int len = name.length();
378 const lock_guard<mutex> guard(
fMutexEvt);
383 const string evt = (*i)->GetName();
385 v.push_back(evt.substr(0, len)==name ? evt.substr(len) : evt);
std::vector< EventImp * > fListOfEvents
std::mutex fMutexEvt
Mutex to ensure thread-safe access to the command fifo.