STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::runtime::generic_impl::queue< T > Class Template Reference

A thread-safe queue. More...

Public Member Functions

 queue (queue const &other)
 
 queue (queue &&other)
 
queueoperator= (queue const &other)
 
queueoperator= (queue &&other)
 
bool empty (void) const
 
size_type size (void) const
 
void push (value_type const &x)
 
void push (value_type &&x)
 
bool try_pop (value_type &x)
 
void clear (void)
 

Public Types

typedef queue_type::value_type value_type
 
typedef value_type & reference
 
typedef value_type const & const_reference
 
typedef queue_type::size_type size_type
 

Detailed Description

template<typename T>
class stapl::runtime::generic_impl::queue< T >

A thread-safe queue.

Warning
Thread-safety is enforced through locks, therefore this queue is not the best performing.

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