FACT++  1.0
template<class T, class List = std::list<T>>
bool Queue< T, List >::stop ( )
inline

Definition at line 162 of file Queue.h.

163  {
164  const std::lock_guard<std::mutex> lock(fMutex);
165  if (fState==kIdle)
166  return false;
167 
168  fState = kStop;
169  fCond.notify_one();
170 
171  return true;
172  }
state_t fState
Definition: Queue.h:48
std::condition_variable fCond
Definition: Queue.h:35
std::mutex fMutex
Definition: Queue.h:34