FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
FB::SafeQueue< Data > Class Template Reference

Basic thread-safe queue class. More...

#include "SafeQueue.h"

Inheritance diagram for FB::SafeQueue< Data >:
Inheritance graph

Public Member Functions

void push (Data const &data)
 Pushes an object onto the end of the queue. More...
 
bool empty () const
 Queries if the queue is empty. More...
 
bool try_pop (Data &popped_value)
 Try to pop a value off the front of the queue; if the queue is empty returns false. More...
 
bool timed_wait_and_pop (Data &popped_value, const boost::posix_time::time_duration &duration)
 Tries to pop a value off the front of the queue; if the queue is empty it will wait for the specified duration until something is pushed onto the back of the queue by another thread or until the duration times out. More...
 
void wait_and_pop (Data &popped_value)
 Tries to pop a value off the front of the queue; if the queue is empty it will wait indefinitely until something is pushed onto the back of the queue by another thread. More...
 

Detailed Description

template<typename Data>
class FB::SafeQueue< Data >

Basic thread-safe queue class.

Definition at line 31 of file SafeQueue.h.


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