Open Lighting Architecture
Latest Git
|
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. More... | |
Public Attributes | |
std::string | name |
The name of the thread. | |
int | policy |
The scheduling policy. More... | |
int | priority |
The thread priority. More... | |
int | inheritsched |
The scheduling mode, either PTHREAD_EXPLICIT_SCHED or PTHREAD_INHERIT_SCHED. More... | |
|
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.