Open Lighting Architecture  Latest Git
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.

Collaboration diagram for ola::thread::Thread::Options:
Collaboration graph
[legend]

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...
 

Constructor & Destructor Documentation

◆ Options()

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

Create new thread Options.

Parameters
namethe name of the thread.

Member Data Documentation

◆ inheritsched

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

The scheduling mode, either PTHREAD_EXPLICIT_SCHED or PTHREAD_INHERIT_SCHED.

Defaults to PTHREAD_EXPLICIT_SCHED.

◆ policy

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

The scheduling policy.

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

◆ priority

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: