FACT++  1.0
void StateMachineImp::Unsubscribe ( EventImp evt)

Definition at line 612 of file StateMachineImp.cc.

References fListOfEvents, and fMutexEvt.

Referenced by GetName(), RemoteControl< Shell >::JsUnsubscribe(), and RemoteControl< Shell >::UnsubscribeAll().

613 {
614  {
615  const lock_guard<mutex> guard(fMutexEvt);
616 
617  auto it = find(fListOfEvents.begin(), fListOfEvents.end(), evt);
618  if (it==fListOfEvents.end())
619  return;
620 
621  fListOfEvents.erase(it);
622  }
623  delete evt;
624 }
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: