distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::ThisThread Namespace Reference

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...
 
Threadget ()
 
uint8_t getEffectivePriority ()
 
uint8_t getPriority ()
 
SchedulingPolicy getSchedulingPolicy ()
 
size_t getStackHighWaterMark ()
 
size_t getStackSize ()
 
void setPriority (uint8_t priority, bool alwaysBehind={})
 
void setSchedulingPolicy (SchedulingPolicy schedulingPolicy)
 
int sleepFor (TickClock::duration duration)
 Makes the calling (current) thread sleep for at least given duration. 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...
 
int sleepUntil (TickClock::time_point timePoint)
 Makes the calling (current) thread sleep until some time point is reached. 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...
 
void yield ()
 Yields time slot of the scheduler to next thread. More...
 

Detailed Description

Functions that can be used to control current thread.