MRPT
1.9.9
|
(in #include <mrpt/system/scheduler.h>)
Enumerations | |
enum | mrpt::system::TProcessPriority { mrpt::system::ppIdle = 0, mrpt::system::ppNormal, mrpt::system::ppHigh, mrpt::system::ppVeryHigh } |
The type for cross-platform process (application) priorities. More... | |
enum | mrpt::system::TThreadPriority { mrpt::system::tpLowests = -15, mrpt::system::tpLower = -2, mrpt::system::tpLow = -1, mrpt::system::tpNormal = 0, mrpt::system::tpHigh = 1, mrpt::system::tpHigher = 2, mrpt::system::tpHighest = 15 } |
The type for cross-platform thread priorities. More... | |
Functions | |
void | mrpt::system::changeCurrentThreadPriority (TThreadPriority priority) |
Change the priority of the current thread - for Windows, see also changeCurrentProcessPriority() More... | |
void | mrpt::system::changeCurrentProcessPriority (TProcessPriority priority) |
Change the priority of the given process (it applies to all the threads, plus independent modifiers for each thread). More... | |
The type for cross-platform process (application) priorities.
Enumerator | |
---|---|
ppIdle | |
ppNormal | |
ppHigh | |
ppVeryHigh |
Definition at line 21 of file scheduler.h.
The type for cross-platform thread priorities.
Definition at line 32 of file scheduler.h.
void mrpt::system::changeCurrentProcessPriority | ( | TProcessPriority | priority | ) |
Change the priority of the given process (it applies to all the threads, plus independent modifiers for each thread).
root
permissions to increase process priority! Internally it calls nice(), so it has no effect if () was called and a SCHED_RR is already active. Definition at line 109 of file scheduler.cpp.
References mrpt::system::ppHigh, mrpt::system::ppIdle, mrpt::system::ppNormal, mrpt::system::ppVeryHigh, and THROW_EXCEPTION.
void mrpt::system::changeCurrentThreadPriority | ( | TThreadPriority | priority | ) |
Change the priority of the current thread - for Windows, see also changeCurrentProcessPriority()
root
permissions! This sets the Round Robin scheduler with the given priority level. Read sched_setscheduler. Definition at line 43 of file scheduler.cpp.
References mrpt::system::tpHigh, mrpt::system::tpHigher, mrpt::system::tpHighest, mrpt::system::tpLow, mrpt::system::tpLower, mrpt::system::tpLowests, and mrpt::system::tpNormal.
Referenced by thread_client().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |