Code: Select all
esp_pthread_cfg_t worker_config{};
worker_config.stack_size = 1234;
worker_config.prio = 1234;
esp_pthread_set_cfg(&worker_config);
worker = std::thread([this]()
{
this->exec();
}
);
If not, could perhaps a core_id be added to the esp_pthread_cfg_t struct to accomplish it?