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

Definition at line 174 of file Queue.h.

175  {
176  const std::lock_guard<std::mutex> lock(fMutex);
177  if (fState==kIdle)
178  return false;
179 
180  fState = kAbort;
181  fCond.notify_one();
182 
183  return true;
184  }
state_t fState
Definition: Queue.h:48
std::condition_variable fCond
Definition: Queue.h:35
std::mutex fMutex
Definition: Queue.h:34