Thread class is a pure abstract interface for threads.
More...
#include "distortos/Thread.hpp"
Thread class is a pure abstract interface for threads.
◆ ~Thread()
virtual distortos::Thread::~Thread |
( |
| ) |
|
|
virtualdefault |
◆ detach()
virtual int distortos::Thread::detach |
( |
| ) |
|
|
pure virtual |
◆ getEffectivePriority()
virtual uint8_t distortos::Thread::getEffectivePriority |
( |
| ) |
const |
|
pure virtual |
◆ getIdentifier()
◆ getPriority()
virtual uint8_t distortos::Thread::getPriority |
( |
| ) |
const |
|
pure virtual |
◆ getSchedulingPolicy()
◆ getStackHighWaterMark()
virtual size_t distortos::Thread::getStackHighWaterMark |
( |
| ) |
const |
|
pure virtual |
◆ getStackSize()
virtual size_t distortos::Thread::getStackSize |
( |
| ) |
const |
|
pure virtual |
◆ getState()
virtual ThreadState distortos::Thread::getState |
( |
| ) |
const |
|
pure virtual |
◆ setPriority()
virtual void distortos::Thread::setPriority |
( |
uint8_t |
priority, |
|
|
bool |
alwaysBehind = {} |
|
) |
| |
|
pure virtual |
Changes priority of thread.
If the priority really changes, the position in the thread list is adjusted and context switch may be requested.
- Parameters
-
[in] | priority | is the new priority of thread |
[in] | alwaysBehind | selects the method of ordering when lowering the priority
- false - the thread is moved to the head of the group of threads with the new priority (default),
- true - the thread is moved to the tail of the group of threads with the new priority.
|
Implemented in distortos::DynamicThread, and distortos::internal::ThreadCommon.
◆ setSchedulingPolicy()
virtual void distortos::Thread::setSchedulingPolicy |
( |
SchedulingPolicy |
schedulingPolicy | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: