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

Definition at line 186 of file Queue.h.

Referenced by mainloop(), MessageDimTX::~MessageDimTX(), Queue< pair< Time, GUI_STAT > >::~Queue(), and WindowLog::~WindowLog().

187  {
188  {
189  const std::lock_guard<std::mutex> lock(fMutex);
190  if (fState==kIdle || fState==kPrompt)
191  return false;
192 
193  if (fState==kRun)
194  {
195  fState = abrt ? kAbort : kStop;
196  fCond.notify_one();
197  }
198  }
199 
200  fThread.join();
201  return true;
202  }
state_t fState
Definition: Queue.h:48
std::condition_variable fCond
Definition: Queue.h:35
std::mutex fMutex
Definition: Queue.h:34
std::thread fThread
Definition: Queue.h:53

+ Here is the caller graph for this function: