#include <concurrentQueue.h>
Public Member Functions | |
ConcurrentQueue () | |
bool | empty () const |
bool | pop (T &data) |
void | push (T const &data) |
void | wait_pop (T &data) |
Private Attributes | |
boost::condition_variable | _condition |
boost::mutex | _mutex |
boost::circular_buffer< T > | _queue |
Definition at line 23 of file concurrentQueue.h.
ConcurrentQueue< T >::ConcurrentQueue | ( | ) | [inline] |
Definition at line 30 of file concurrentQueue.h.
bool ConcurrentQueue< T >::empty | ( | ) | const [inline] |
Definition at line 35 of file concurrentQueue.h.
bool ConcurrentQueue< T >::pop | ( | T & | data | ) | [inline] |
Definition at line 49 of file concurrentQueue.h.
void ConcurrentQueue< T >::push | ( | T const & | data | ) | [inline] |
Definition at line 41 of file concurrentQueue.h.
void ConcurrentQueue< T >::wait_pop | ( | T & | data | ) | [inline] |
Definition at line 61 of file concurrentQueue.h.
boost::condition_variable ConcurrentQueue< T >::_condition [private] |
Definition at line 28 of file concurrentQueue.h.
boost::mutex ConcurrentQueue< T >::_mutex [mutable, private] |
Definition at line 27 of file concurrentQueue.h.
boost::circular_buffer<T> ConcurrentQueue< T >::_queue [private] |
Definition at line 26 of file concurrentQueue.h.