thread_supervisor
Public Member Functions | Public Attributes | List of all members
tut::thread::Parameters::Scheduling Class Reference

Detailed Description

Scheduling parameters, POSIX threads only, see pthread_setschedparam.

Definition at line 110 of file supervisor.h.

#include <supervisor.h>

Public Member Functions

 Scheduling (const int priority=0, const int policy=SCHED_FIFO, const bool ignore_failures=true)
 proceed if scheduling parameters could not be set More...
 
bool apply (const std::thread::native_handle_type &&handle) const
 

Public Attributes

int priority_
 
int policy_
 thread priority More...
 
bool ignore_failures_
 thread policy More...
 

Constructor & Destructor Documentation

◆ Scheduling()

tut::thread::Parameters::Scheduling::Scheduling ( const int  priority = 0,
const int  policy = SCHED_FIFO,
const bool  ignore_failures = true 
)
inlineexplicit

proceed if scheduling parameters could not be set

Definition at line 118 of file supervisor.h.

Member Function Documentation

◆ apply()

bool tut::thread::Parameters::Scheduling::apply ( const std::thread::native_handle_type &&  handle) const
inline

Definition at line 129 of file supervisor.h.

Member Data Documentation

◆ ignore_failures_

bool tut::thread::Parameters::Scheduling::ignore_failures_

thread policy

Definition at line 115 of file supervisor.h.

◆ policy_

int tut::thread::Parameters::Scheduling::policy_

thread priority

Definition at line 114 of file supervisor.h.

◆ priority_

int tut::thread::Parameters::Scheduling::priority_

Definition at line 113 of file supervisor.h.


The documentation for this class was generated from the following file: