Detailed Description
A thread object to be subclassed.
Public Member Functions |
|
virtual bool | Start () |
| virtual bool | FastStart () |
|
virtual bool | Join (void *ptr=NULL) |
|
bool | IsRunning () |
|
ThreadId | Id () const |
| void * | _InternalRun () |
Static Public Member Functions |
|
static ThreadId | Self () |
Protected Member Functions |
|
virtual void * | Run ()=0 |
Member Function Documentation
| void * ola::thread::Thread::_InternalRun |
( |
| ) |
|
Mark the thread as running and call the main Run method
| bool ola::thread::Thread::FastStart |
( |
| ) |
|
|
virtual |
This launches a new thread and returns immediately. Don't use this unless you know what you're doing as it introduces a race condition with Join()
The documentation for this class was generated from the following files:
- include/ola/thread/Thread.h
- common/thread/Thread.cpp