NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | List of all members
nvbio::WorkQueue< WorkItemT, ProgressCallbackT > Class Template Reference

Detailed description

template< typename WorkItemT, typename ProgressCallbackT>
class nvbio::WorkQueue< WorkItemT, ProgressCallbackT >

Work queue class.

Definition at line 191 of file threads.h.

#include <threads.h>

Public Types

typedef WorkItemT WorkItem
 
typedef ProgressCallbackT ProgressCallback
 

Public Methods

 WorkQueue ()
 empty constructor More...
 
void push (const WorkItem work)
 push a work item in the queue More...
 
void locked_push (const WorkItem work)
 push a work item in the queue More...
 
bool pop (WorkItem &work)
 pop the next work item from the queue More...
 
void set_callback (const ProgressCallback callback)
 set a callback More...
 

Member Typedef Documentation

template<typename WorkItemT , typename ProgressCallbackT >
typedef ProgressCallbackT nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::ProgressCallback

Definition at line 195 of file threads.h.

template<typename WorkItemT , typename ProgressCallbackT >
typedef WorkItemT nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::WorkItem

Definition at line 194 of file threads.h.

Constructor & Destructor Documentation

template<typename WorkItemT , typename ProgressCallbackT >
nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::WorkQueue ( )
inline

empty constructor

Definition at line 198 of file threads.h.

Member Function Documentation

template<typename WorkItemT , typename ProgressCallbackT >
void nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::locked_push ( const WorkItem  work)
inline

push a work item in the queue

Definition at line 204 of file threads.h.

template<typename WorkItemT , typename ProgressCallbackT >
bool nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::pop ( WorkItem work)
inline

pop the next work item from the queue

Definition at line 211 of file threads.h.

template<typename WorkItemT , typename ProgressCallbackT >
void nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::push ( const WorkItem  work)
inline

push a work item in the queue

Definition at line 201 of file threads.h.

template<typename WorkItemT , typename ProgressCallbackT >
void nvbio::WorkQueue< WorkItemT, ProgressCallbackT >::set_callback ( const ProgressCallback  callback)
inline

set a callback

Definition at line 225 of file threads.h.


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