|
virtual bool | run () |
|
modm::fiber::id | get_id () const |
|
stop_source | get_stop_source () |
|
stop_token | get_stop_token () |
|
bool | isRunning () const |
|
void | join () |
|
bool | joinable () const |
| Checks if the Task object identifies an active fiber of execution.
|
|
bool | request_stop () |
|
void | restart () |
|
size_t | stack_usage () const |
|
void | stack_watermark () |
|
bool | start () |
|
void | stop () |
|
virtual bool | update () |
|
|
static constexpr unsigned int | hardware_concurrency () |
| Returns the number of concurrent threads supported by the implementation.
|
|
|
uint8_t | state |
|
bool | restartCondition |
|
|
|
static constexpr size_t | StackAlignment |
| Alignment requirements for the bottom and top of the stack.
|
|
static constexpr size_t | StackSizeDefault |
|
static constexpr size_t | StackSizeMinimum |
| Minimum stack size required to push one full fiber context.
|
|
enum | cv_status |
|
using | condition_variable = condition_variable_any |
| There is no specialization for std::unique_lock<fiber::mutex> .
|
|
Identifier of a fiber task.
The Fiber scheduling policy.
modm::fiber::id modm::fiber::Task::get_id |
( |
| ) |
const |
|
inheritednodiscardinline |
Returns a value of std::thread::id identifying the thread associated with *this
.
- Note
- This function can be called from an interrupt.
bool modm::fiber::Task::isRunning |
( |
| ) |
const |
|
inheritednodiscardinline |
- Returns
- if the fiber is attached to a scheduler.
void modm::fiber::Task::join |
( |
| ) |
|
|
inheritedinline |
Blocks the current fiber until the fiber identified by *this
finishes its execution. Returns immediately if the thread is not joinable.
bool modm::fiber::Task::request_stop |
( |
| ) |
|
|
inheritedinline |
- Note
- This function can be called from an interrupt.
size_t modm::fiber::Task::stack_usage |
( |
| ) |
const |
|
inheritednodiscardinline |
void modm::fiber::Task::stack_watermark |
( |
| ) |
|
|
inheritedinline |
bool modm::fiber::Task::start |
( |
| ) |
|
|
inherited |
Adds the task to the currently active scheduler, if not already running.
- Returns
- if the fiber has been scheduled.
constexpr size_t modm::Fiber< fiber::StackSizeDefault >::StackSizeDefault |
|
inheritedstaticconstexpr |
The documentation for this class was generated from the following file: