Open Lighting Architecture
0.9.4
|
A thread which executes a Callback.
Public Types | |
typedef SingleUseCallback0< void > | VoidThreadCallback |
Public Member Functions | |
CallbackThread (VoidThreadCallback *callback, const Options &options=Options()) | |
Public Member Functions inherited from ola::thread::Thread | |
Thread (const Options &options=Options()) | |
Create a new thread with the specified thread options. | |
virtual | ~Thread () |
Destructor. | |
virtual bool | Start () |
Start the thread and wait for the thread to be running. | |
virtual bool | FastStart () |
Start the thread and return immediately. | |
virtual bool | Join (void *ptr=NULL) |
Join this thread. | |
bool | IsRunning () |
Check if the thread is running. | |
ThreadId | Id () const |
Return the thread id. | |
std::string | Name () const |
Return the thread name. |
Protected Member Functions | |
void * | Run () |
The entry point for the new thread. |
Additional Inherited Members | |
Static Public Member Functions inherited from ola::thread::Thread | |
static ThreadId | Self () |
Returns the current thread's id. |
|
inlineexplicit |
Create a new CallbackThread.
callback | the callback to run in the new thread. |
options | the thread's options. |
|
inlineprotectedvirtual |
The entry point for the new thread.
Sub classes must implement this.
Implements ola::thread::Thread.