Open Lighting Architecture
0.9.6
|
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. |
|
explicit |
Create new thread Options.
name | the name of the thread. |
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.