SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
thread_priority.h File Reference

Functions to set thread priority. More...

#include <thread>

Go to the source code of this file.

Enumerations

enum  thread_priority_t {
  PRIORITY_LOWEST = 1 , PRIORITY_LOW = 24 , PRIORITY_NORMAL = 50 , PRIORITY_HIGH = 74 ,
  PRIORITY_HIGHEST = 99
}

Functions

void satdump::setThreadPriority (std::thread &th, thread_priority_t priority)
 Set specified thread priority on the specified thread.
void satdump::setLowestThreadPriority (std::thread &th)
 Set lowest possible thread priority on the specified thread.
void satdump::setLowestThreadPriority ()
 Set lowest possible thread priority on the current thread.

Detailed Description

Functions to set thread priority.

Function Documentation

◆ setLowestThreadPriority()

void satdump::setLowestThreadPriority ( std::thread & th)

Set lowest possible thread priority on the specified thread.

Parameters
ththe thread to apply to

◆ setThreadPriority()

void satdump::setThreadPriority ( std::thread & th,
thread_priority_t priority )

Set specified thread priority on the specified thread.

Parameters
ththe thread to apply to
prioritypriority to set