|
| StaticThread (uint8_t priority, SchedulingPolicy schedulingPolicy, Function &&function, Args &&... args) |
| StaticThread's constructor. More...
|
|
| StaticThread (const uint8_t priority, Function &&function, Args &&... args) |
| StaticThread's constructor. More...
|
|
| StaticThread (const StaticThread &)=delete |
|
| StaticThread (StaticThread &&)=default |
|
const StaticThread & | operator= (const StaticThread &)=delete |
|
StaticThread & | operator= (StaticThread &&)=delete |
|
| StaticThreadBase (const uint8_t priority, const SchedulingPolicy schedulingPolicy, SignalsReceiver *const signalsReceiver, Function &&function, Args &&... args) |
| StaticThreadBase's constructor. More...
|
|
| StaticThreadBase (const StaticThreadBase &)=delete |
|
| StaticThreadBase (StaticThreadBase &&)=default |
|
const StaticThreadBase & | operator= (const StaticThreadBase &)=delete |
|
StaticThreadBase & | operator= (StaticThreadBase &&)=delete |
|
int | start () |
| Starts the thread. More...
|
|
int | detach () override |
| Detaches the thread. More...
|
|
| ThreadCommon (Stack &&stack, uint8_t priority, SchedulingPolicy schedulingPolicy, ThreadGroupControlBlock *threadGroupControlBlock, SignalsReceiver *signalsReceiver) |
| ThreadCommon's constructor. More...
|
|
| ~ThreadCommon () override |
| ThreadCommon's destructor. More...
|
|
int | generateSignal (uint8_t signalNumber) override |
| Generates signal for thread. More...
|
|
uint8_t | getEffectivePriority () const override |
|
ThreadIdentifier | getIdentifier () const override |
|
SignalSet | getPendingSignalSet () const override |
| Gets set of currently pending signals. More...
|
|
uint8_t | getPriority () const override |
|
SchedulingPolicy | getSchedulingPolicy () const override |
|
size_t | getStackHighWaterMark () const override |
|
size_t | getStackSize () const override |
|
ThreadState | getState () const override |
|
int | join () override |
| Waits for thread termination. More...
|
|
int | queueSignal (uint8_t signalNumber, sigval value) override |
| Queues signal for thread. More...
|
|
void | setPriority (uint8_t priority, bool alwaysBehind={}) override |
| Changes priority of thread. More...
|
|
void | setSchedulingPolicy (SchedulingPolicy schedulingPolicy) override |
|
| ThreadCommon (const ThreadCommon &)=delete |
|
| ThreadCommon (ThreadCommon &&)=default |
|
const ThreadCommon & | operator= (const ThreadCommon &)=delete |
|
ThreadCommon & | operator= (ThreadCommon &&)=delete |
|
virtual | ~Thread ()=default |
| Thread's destructor. More...
|
|
template<size_t StackSize, bool CanReceiveSignals, size_t QueuedSignals, size_t SignalActions, typename Function, typename... Args>
class distortos::StaticThread< StackSize, CanReceiveSignals, QueuedSignals, SignalActions, Function, Args >
StaticThread class is a templated interface for thread that has automatic storage for stack.
- Template Parameters
-
StackSize | is the size of stack, bytes |
CanReceiveSignals | selects whether reception of signals is enabled (true) or disabled (false) for this thread |
QueuedSignals | is the max number of queued signals for this thread, relevant only if CanReceiveSignals == true, 0 to disable queuing of signals for this thread |
SignalActions | is the max number of different SignalAction objects for this thread, relevant only if CanReceiveSignals == true, 0 to disable catching of signals for this thread |
Function | is the function that will be executed in separate thread |
Args | are the arguments for Function |