Equalizer  1.2.1
Public Member Functions | Protected Member Functions
co::WorkerThread< Q > Class Template Reference

A worker thread. More...

#include <worker.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

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

Detailed Description

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

A worker thread.

Definition at line 28 of file worker.h.


Constructor & Destructor Documentation

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

Construct a new worker thread.

Version:
1.1.5

Definition at line 32 of file worker.h.

template<class Q >
virtual co::WorkerThread< Q >::~WorkerThread ( ) [inline, virtual]

Destruct the worker.

Version:
1.1.5

Definition at line 35 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.1.5

Definition at line 38 of file worker.h.

template<class Q >
virtual bool co::WorkerThread< Q >::init ( ) [inline, protected, virtual]
See also:
base::Thread::init()

Reimplemented from co::base::Thread.

Definition at line 42 of file worker.h.

References co::base::className().

+ Here is the call graph for this function:

template<class Q >
virtual bool co::WorkerThread< Q >::notifyIdle ( ) [inline, protected, virtual]
Returns:
true to indicate pending idle tasks.
Version:
1.1.5

Definition at line 55 of file worker.h.

template<class Q >
virtual void co::WorkerThread< Q >::run ( ) [protected, virtual]
See also:
base::Thread::run()

Implements co::base::Thread.

template<class Q >
virtual bool co::WorkerThread< Q >::stopRunning ( ) [inline, protected, virtual]
Returns:
true to stop the worker thread.
Version:
1.1.5

Definition at line 52 of file worker.h.


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 2012 15:44:34 for Equalizer 1.2.1 by  doxygen 1.8.0