#include <Thread.h>
Inheritance diagram for activemq::concurrent::Thread:

Public Member Functions | |
| Thread () | |
| Thread (Runnable *task) | |
| virtual | ~Thread () |
| virtual void | start () throw ( exceptions::ActiveMQException ) |
| virtual void | join () throw ( exceptions::ActiveMQException ) |
| virtual void | run () |
Static Public Member Functions | |
| static void | sleep (int millisecs) |
| static unsigned long | getId (void) |
Static Private Member Functions | |
| static unsigned int WINAPI | runCallback (void *param) |
Private Attributes | |
| Runnable * | task |
| HANDLE | threadHandle |
| bool | started |
| bool | joined |
|
|
default Constructor |
|
|
Constructor
|
|
|
|
|
|
Obtains the Thread Id of the current thread
|
|
|
Wait til the thread exits. This is when the run() method has returned or has thrown an exception. |
|
|
Default implementation of the run method - does nothing. Implements activemq::concurrent::Runnable. Reimplemented in activemq::concurrent::PooledThread. |
|
|
|
|
|
Halts execution of the calling thread for a specified no of millisec. Note that this method is a static method that applies to the calling thread and not to the thread object.
|
|
|
Creates a system thread and starts it in a joinable mode. Upon creation, the run() method of either this object or the provided Runnable object will be invoked in the context of this thread.
|
|
|
Indicates whether the thread has already been joined. |
|
|
Started state of this thread. |
|
|
The task to be run by this thread, defaults to this thread object. |
|
|
|
1.4.5