Collage  1.0.1
Object-Oriented C++ Network Library
Public Member Functions | Protected Member Functions | List of all members
co::WorkerThread< Q > Class Template Reference

A worker thread processing items out of a CommandQueue. More...

#include <worker.h>

+ Inheritance diagram for co::WorkerThread< Q >:
+ Collaboration diagram for co::WorkerThread< Q >:

Public Member Functions

 WorkerThread ()
 Construct a new worker thread. More...
 
virtual ~WorkerThread ()
 Destruct the worker. More...
 
Q * getWorkerQueue ()
 

Protected Member Functions

virtual bool init ()
 
virtual CO_WORKER_API void run ()
 
virtual bool stopRunning ()
 
virtual bool notifyIdle ()
 

Detailed Description

template<class Q>
class co::WorkerThread< Q >

A worker thread processing items out of a CommandQueue.

Definition at line 69 of file types.h.

Constructor & Destructor Documentation

template<class Q >
co::WorkerThread< Q >::WorkerThread ( )
inline

Construct a new worker thread.

Version
1.0

Definition at line 38 of file worker.h.

template<class Q >
virtual co::WorkerThread< Q >::~WorkerThread ( )
inlinevirtual

Destruct the worker.

Version
1.0

Definition at line 41 of file worker.h.

Member Function Documentation

template<class Q >
Q* co::WorkerThread< Q >::getWorkerQueue ( )
inline
Returns
the queue to the worker thread.
Version
1.0

Definition at line 44 of file worker.h.

template<class Q >
virtual bool co::WorkerThread< Q >::init ( )
inlineprotectedvirtual
See Also
lunchbox::Thread::init()

Definition at line 48 of file worker.h.

template<class Q >
virtual bool co::WorkerThread< Q >::notifyIdle ( )
inlineprotectedvirtual
Returns
true to indicate pending idle tasks.
Version
1.0

Definition at line 61 of file worker.h.

template<class Q >
void co::WorkerThread< Q >::run ( )
protectedvirtual
See Also
lunchbox::Thread::run()

Definition at line 25 of file worker.ipp.

template<class Q >
virtual bool co::WorkerThread< Q >::stopRunning ( )
inlineprotectedvirtual
Returns
true to stop the worker thread.
Version
1.0

Definition at line 58 of file worker.h.


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