Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | List of all members
OlaThread Class Reference
Inheritance diagram for OlaThread:
Inheritance graph
[legend]
Collaboration diagram for OlaThread:
Collaboration graph
[legend]

Public Member Functions

bool Start ()
 Start the thread and wait for the thread to be running. More...
 
void Stop ()
 
void FetchPluginList (ola::client::PluginListCallback *callback)
 
ola::io::SelectServerGetSelectServer ()
 
- Public Member Functions inherited from ola::thread::Thread
 Thread (const Options &options=Options())
 Create a new thread with the specified thread options. More...
 
virtual ~Thread ()
 Destructor.
 
virtual bool FastStart ()
 Start the thread and return immediately. More...
 
virtual bool Join (void *ptr=NULL)
 Join this thread. More...
 
bool IsRunning ()
 Check if the thread is running. More...
 
ThreadId Id () const
 Return the thread id. More...
 
std::string Name () const
 Return the thread name. More...
 

Protected Member Functions

void * Run ()
 The entry point for the new thread. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ola::thread::Thread
static ThreadId Self ()
 Returns the current thread's id. More...
 

Member Function Documentation

void* OlaThread::Run ( )
inlineprotectedvirtual

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: