FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<typename Data>
void FB::SafeQueue< Data >::push ( Data const &  data)
inline

Pushes an object onto the end of the queue.

Parameters
dataThe data.

Definition at line 45 of file SafeQueue.h.

46  {
47  boost::mutex::scoped_lock lock(the_mutex);
48  the_queue.push(data);
49  lock.unlock();
50  the_condition_variable.notify_one();
51  }