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

Definition at line 151 of file Queue.h.

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

152  {
153  const std::lock_guard<std::mutex> lock(fMutex);
154  if (fState!=kIdle)
155  return false;
156 
157  fState = kRun;
158  fThread = std::thread(std::bind(&Queue::Thread, this));
159  return true;
160  }
state_t fState
Definition: Queue.h:48
std::mutex fMutex
Definition: Queue.h:34
std::thread fThread
Definition: Queue.h:53
void Thread()
Definition: Queue.h:55

+ Here is the caller graph for this function: