FACT++  1.0
EventImp & StateMachineImp::Subscribe ( const std::string &  name)

Definition at line 603 of file StateMachineImp.cc.

References CreateService(), fListOfEvents, and fMutexEvt.

Referenced by DimDnsServiceList::CallbackServerAdd(), GetName(), RemoteControl< Shell >::JsSubscribe(), DimLoggerCheck::Subscribe(), DimState::Subscribe(), DimDescribedState::Subscribe(), DimDescriptions::Subscribe(), and DimDnsServerList::Subscribe().

604 {
605  EventImp *evt = CreateService(name);
606 
607  const lock_guard<mutex> guard(fMutexEvt);
608  fListOfEvents.push_back(evt);
609  return *evt;
610 }
A general base-class describing events issues in a state machine.
Definition: EventImp.h:11
std::vector< EventImp * > fListOfEvents
std::mutex fMutexEvt
Mutex to ensure thread-safe access to the command fifo.
virtual EventImp * CreateService(const std::string &)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: