IBM SYSTEMG G RUNTIME & NATIVE STORE  0.5
IBM Native Graph Computing and Storage System based on IBM Parallel Programming Library
 All Classes Functions Variables Typedefs Pages
Public Member Functions | Protected Attributes | Private Types | List of all members
ibmppl::internal::task_queue< T > Class Template Reference

Simple thread safe queue for task management;. More...

#include <queue.h>

Inherits deque< T >.

Public Member Functions

void push_back (T elem)
 Add an element to the end of the queue.
 
pop_front (bool &valid)
 Remove an element from the front of the queue.
 
pop_back (bool &valid)
 Remove an element from the end of the queue.
 
size_t size () const
 FIXME: Number of tasks in the queue; Not thread safe.
 

Protected Attributes

volatile int32_t l
 
volatile size_t _sz
 

Private Types

typedef std::deque< T > base_type
 

Detailed Description

template<class T>
class ibmppl::internal::task_queue< T >

Simple thread safe queue for task management;.

TODO(penguin): there is a <boost/lockfree/queue.hpp> that we could try if performance becomes a bottleneck T is task* ; so we only handle pointers


The documentation for this class was generated from the following file: