Open Lighting Architecture
0.10.4
|
Threads and syncronization mechanisms.
Classes | |
class | CallbackThread |
A thread which executes a Callback. More... | |
class | ConditionVariable |
class | ConsumerThread |
class | ExecutorInterface |
Defer execution of a callback. More... | |
class | ExecutorThread |
Enables callbacks to be executed in a separate thread. More... | |
class | Future |
class | Future< void > |
class | FutureImpl |
class | FutureImpl< void > |
class | Mutex |
class | MutexLocker |
class | PeriodicThread |
A thread which executes a Callback. More... | |
class | SchedulerInterface |
Allows Callbacks to be scheduled to run after a specified interval. More... | |
class | SchedulingExecutorInterface |
Combines the ExecutorInterface and the SchedulerInterface. More... | |
class | SignalThread |
class | Thread |
class | ThreadPool |
Typedefs | |
typedef void * | timeout_id |
A timeout handle which can later be used to cancel a timeout. | |
typedef pthread_t | ThreadId |
Functions | |
std::string | PolicyToString (int policy) |
Convert a scheduling policy to a string. More... | |
bool | SetSchedParam (pthread_t thread, int policy, const struct sched_param ¶m) |
Wraps pthread_setschedparam(). More... | |
Variables | |
static const timeout_id | INVALID_TIMEOUT = NULL |
An invalid / uninitialized timeout_id. | |
std::string ola::thread::PolicyToString | ( | int | policy | ) |
Convert a scheduling policy to a string.
policy | the scheduling policy. |
bool ola::thread::SetSchedParam | ( | pthread_t | thread, |
int | policy, | ||
const struct sched_param & | param | ||
) |
Wraps pthread_setschedparam().
thread | The thread id. |
policy | the new policy. |
param | the scheduling parameters. |