DynamicThreadParameters struct is a helper with parameters for DynamicThread's constructor.
More...
#include "distortos/DynamicThreadParameters.hpp"
DynamicThreadParameters struct is a helper with parameters for DynamicThread's constructor.
This struct is a replacement for overloads of DynamicThread's constructor, makeDynamicThread() and makeAndStartDynamicThread() which - unfortunately - cannot be used, as they would lead to compilation errors due to ambiguity.
◆ DynamicThreadParameters() [1/2]
constexpr distortos::DynamicThreadParameters::DynamicThreadParameters |
( |
const size_t |
stackSizee, |
|
|
const bool |
canReceiveSignalss, |
|
|
const size_t |
queuedSignalss, |
|
|
const size_t |
signalActionss, |
|
|
const uint8_t |
priorityy, |
|
|
const SchedulingPolicy |
schedulingPolicyy = SchedulingPolicy::roundRobin |
|
) |
| |
|
inline |
DynamicThreadParameters's constructor.
- Parameters
-
[in] | stackSizee | is the size of stack, bytes |
[in] | canReceiveSignalss | selects whether reception of signals is enabled (true) or disabled (false) for this thread |
[in] | queuedSignalss | is the max number of queued signals for this thread, relevant only if canReceiveSignals == true, 0 to disable queuing of signals for this thread |
[in] | signalActionss | 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 |
[in] | priorityy | is the thread's priority, 0 - lowest, UINT8_MAX - highest |
[in] | schedulingPolicyy | is the scheduling policy of the thread, default - SchedulingPolicy::roundRobin |
◆ DynamicThreadParameters() [2/2]
DynamicThreadParameters's constructor.
- Parameters
-
[in] | stackSizee | is the size of stack, bytes |
[in] | priorityy | is the thread's priority, 0 - lowest, UINT8_MAX - highest |
[in] | schedulingPolicyy | is the scheduling policy of the thread, default - SchedulingPolicy::roundRobin |
◆ canReceiveSignals
bool distortos::DynamicThreadParameters::canReceiveSignals |
selects whether reception of signals is enabled (true) or disabled (false) for this thread
◆ priority
uint8_t distortos::DynamicThreadParameters::priority |
thread's priority, 0 - lowest, UINT8_MAX - highest
◆ queuedSignals
size_t distortos::DynamicThreadParameters::queuedSignals |
max number of queued signals for this thread, relevant only if canReceiveSignals == true, 0 to disable queuing of signals for this thread
◆ schedulingPolicy
scheduling policy of the thread
◆ signalActions
size_t distortos::DynamicThreadParameters::signalActions |
max number of different SignalAction objects for this thread, relevant only if canReceiveSignals == true, 0 to disable catching of signals for this thread
◆ stackSize
size_t distortos::DynamicThreadParameters::stackSize |
The documentation for this struct was generated from the following file: