Open Lighting Architecture: ola::thread::Thread::Options Struct Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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

## ◆ Options()

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

Create new thread Options.

Parameters

  name | the 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:

- include/ola/thread/Thread.h
- common/thread/Thread.cpp