#include <uncontentious_queue.h>
Classes | |
struct | Node |
Public Member Functions | |
bool | dequeue (T &) |
void | dequeueBlocking (T &) |
void | enqueue (const T &) |
UncontentiousQueue () | |
~UncontentiousQueue () | |
Private Attributes | |
boost::condition | grown_condition |
Node * | head |
boost::mutex | head_mutex |
Node * | tail |
boost::mutex | tail_mutex |
Definition at line 14 of file uncontentious_queue.h.
megatree::UncontentiousQueue< T >::UncontentiousQueue | ( | ) |
Definition at line 38 of file uncontentious_queue.h.
megatree::UncontentiousQueue< T >::~UncontentiousQueue | ( | ) |
Definition at line 46 of file uncontentious_queue.h.
bool megatree::UncontentiousQueue< T >::dequeue | ( | T & | item | ) |
Definition at line 71 of file uncontentious_queue.h.
void megatree::UncontentiousQueue< T >::dequeueBlocking | ( | T & | item | ) |
Definition at line 84 of file uncontentious_queue.h.
void megatree::UncontentiousQueue< T >::enqueue | ( | const T & | item | ) |
Definition at line 58 of file uncontentious_queue.h.
boost::condition megatree::UncontentiousQueue< T >::grown_condition [private] |
Definition at line 32 of file uncontentious_queue.h.
Node* megatree::UncontentiousQueue< T >::head [private] |
Definition at line 33 of file uncontentious_queue.h.
boost::mutex megatree::UncontentiousQueue< T >::head_mutex [private] |
Definition at line 31 of file uncontentious_queue.h.
Node* megatree::UncontentiousQueue< T >::tail [private] |
Definition at line 34 of file uncontentious_queue.h.
boost::mutex megatree::UncontentiousQueue< T >::tail_mutex [private] |
Definition at line 31 of file uncontentious_queue.h.