Open Lighting Architecture  0.9.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
ola::thread::Thread::Options Struct Reference

Detailed Description

Thread options.

The Scheduler options default to PTHREAD_EXPLICIT_SCHED, with the policy and priority set to the default values for the platform.

Public Member Functions

 Options (const std::string &name="")
 Create new thread Options.

Public Attributes

std::string name
 The name of the thread.
int policy
 The scheduling policy.
int priority
 The thread priority.
int inheritsched
 The scheduling mode, either PTHREAD_EXPLICIT_SCHED or PTHREAD_INHERIT_SCHED.

Constructor & Destructor Documentation

ola::thread::Thread::Options::Options ( const std::string &  name = "")
explicit

Create new thread Options.

Parameters
namethe name of the thread.

Member Data Documentation

int ola::thread::Thread::Options::inheritsched

The scheduling mode, either PTHREAD_EXPLICIT_SCHED or PTHREAD_INHERIT_SCHED.

Defaults to PTHREAD_EXPLICIT_SCHED.

int ola::thread::Thread::Options::policy

The scheduling policy.

Should be one of SCHED_OTHER (usually the platform default), SCHED_FIFO or SCHED_RR.

int ola::thread::Thread::Options::priority

The thread priority.

Defaults to the default value of the platform.


The documentation for this struct was generated from the following files: