Public Member Functions | |
Thread () | |
Thread (RunnablePtr runnable) | |
void | start () |
virtual void | run () |
void | join () |
void | setPriority (int newPriority) |
Static Public Member Functions | |
static unsigned long | getCurrentThreadId () |
static void | sleep (long millis) |
static long | InterlockedIncrement (volatile long *val) |
static long | InterlockedDecrement (volatile long *val) |
Protected Attributes | |
RunnablePtr | runnable |
Thread | ( | RunnablePtr | runnable | ) |
Allocates a new Thread object.
unsigned long getCurrentThreadId | ( | ) | [static] |
Returns the current thread identifier
void sleep | ( | long | millis | ) | [static] |
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
void start | ( | ) |
Causes this thread to begin execution; calls the run method of this thread.
Reimplemented in FileWatchdog.
void run | ( | ) | [virtual] |
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
Reimplemented in FileWatchdog.
void join | ( | ) |
Waits for this thread to die.
void setPriority | ( | int | newPriority | ) |
Changes the priority of this thread.
long InterlockedIncrement | ( | volatile long * | val | ) | [static] |
Atomic increment
long InterlockedDecrement | ( | volatile long * | val | ) | [static] |
Atomic decrement
RunnablePtr runnable [protected] |
Thread descriptor