Public Member Functions |
bool | Start () |
| Start the thread and wait for the thread to be running.
|
void | Stop () |
void | FetchPluginList (ola::client::PluginListCallback *callback) |
ola::io::SelectServer * | GetSelectServer () |
| Thread (const Options &options=Options()) |
| Create a new thread with the specified thread options.
|
virtual | ~Thread () |
| Destructor.
|
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 ThreadId | Self () |
| Returns the current thread's id.
|
Member Function Documentation
The entry point for the new thread.
- Returns
- A value returned to Join().
Sub classes must implement this.
Implements ola::thread::Thread.
bool OlaThread::Start |
( |
| ) |
|
|
inlinevirtual |
Start the thread and wait for the thread to be running.
- Returns
- true if the thread started, false otherwise.
This will block until the thread is running. Use FastStart() if you don't want to block.
Reimplemented from ola::thread::Thread.
The documentation for this class was generated from the following file:
- doxygen/examples/client_thread.cpp