Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ola::thread::Thread Class Reference

Detailed Description

A thread object to be subclassed.

Inheritance diagram for ola::thread::Thread:
ola::e133::BaseSLPThread ola::FilePreferenceSaverThread ola::http::HTTPServer ola::plugin::ftdidmx::FtdiDmxThread ola::plugin::karate::KarateThread ola::plugin::opendmx::OpenDmxThread ola::plugin::spi::HardwareBackend ola::plugin::spi::SoftwareBackend ola::plugin::uartdmx::UartDmxThread ola::plugin::usbdmx::AnymaOutputPort ola::plugin::usbdmx::EuroliteProOutputPort ola::plugin::usbdmx::SunliteOutputPort ola::plugin::usbdmx::VellemanOutputPort ola::plugin::usbpro::WidgetDetectorThread ola::thread::CallbackThread ola::thread::ConsumerThread ola::thread::SignalThread

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: