distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
Functions that can be used to control current thread. More...
Namespaces | |
Signals | |
Signals-related functions operating on current thread. | |
Functions | |
int | detach () |
Detaches calling (current) thread. More... | |
void | exit () |
Exits calling (current) thread. More... | |
Thread & | get () |
uint8_t | getEffectivePriority () |
ThreadIdentifier | getIdentifier () |
uint8_t | getPriority () |
SchedulingPolicy | getSchedulingPolicy () |
size_t | getStackHighWaterMark () |
size_t | getStackSize () |
void | setPriority (const uint8_t priority, const bool alwaysBehind) |
void | setSchedulingPolicy (const SchedulingPolicy schedulingPolicy) |
int | sleepFor (TickClock::duration duration) |
Makes the calling (current) thread sleep for at least given duration. More... | |
int | sleepUntil (TickClock::time_point timePoint) |
Makes the calling (current) thread sleep until some time point is reached. More... | |
void | yield () |
Yields time slot of the scheduler to next thread. More... | |
template<typename Rep , typename Period > | |
int | sleepFor (const std::chrono::duration< Rep, Period > duration) |
Makes the calling (current) thread sleep for at least given duration. More... | |
template<typename Duration > | |
int | sleepUntil (const std::chrono::time_point< TickClock, Duration > timePoint) |
Makes the calling (current) thread sleep until some time point is reached. More... | |
Functions that can be used to control current thread.