FACT++  1.0
template<class T>
int RemoteControl< T >::Handle ( const EventImp evt,
const string &  service 
)
inlineprotected

Definition at line 294 of file RemoteControl.h.

295  {
296  // This function is called from the StateMachine
297  fMutex.lock();
298 
299  const auto it = fInfo.find(service);
300 
301  // This should never happen... but just in case.
302  if (it==fInfo.end())
303  {
304  fMutex.unlock();
306  }
307 
308  EventInfo &info = it->second;
309 
310  const uint64_t cnt = ++info.counter;
311  info.data = static_cast<Event>(evt);
312 
313  fMutex.unlock();
314 
315  JsHandleEvent(evt, cnt, service);
316 
318  }
std::mutex fMutex
void JsHandleEvent(const EventImp &, uint64_t, const std::string &)
map< string, EventInfo > fInfo
Concerete implementation of an EventImp stroring name, format, data and time.
Definition: Event.h:6