idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::event_loop::task_config Struct Reference

Configuration for a dedicated event dispatch task. More...

#include <idfxx_event/include/idfxx/event.hpp>

Public Attributes

std::string_view name
 Name of the task.
 
size_t stack_size = 2048
 Stack size for the task.
 
unsigned int priority = 5
 Priority for the task.
 
std::optional< core_idcore_affinity = std::nullopt
 Core affinity for the task.
 

Detailed Description

Configuration for a dedicated event dispatch task.

Definition at line 267 of file event.hpp.

Member Data Documentation

◆ core_affinity

std::optional<core_id> idfxx::event_loop::task_config::core_affinity = std::nullopt

Core affinity for the task.

Note
If nullopt, the task can run on any core.

Definition at line 278 of file event.hpp.

◆ name

std::string_view idfxx::event_loop::task_config::name

Name of the task.

Definition at line 269 of file event.hpp.

◆ priority

unsigned int idfxx::event_loop::task_config::priority = 5

Priority for the task.

Definition at line 273 of file event.hpp.

◆ stack_size

size_t idfxx::event_loop::task_config::stack_size = 2048

Stack size for the task.

Definition at line 271 of file event.hpp.


The documentation for this struct was generated from the following file: