6#include <zephyr/kernel.h>
22 TaskZephyr(
const char *name,
int stackSize,
int priority = 1,
int core = -1) {
23 create(name, stackSize, priority, core);
30 bool create(
const char *name,
int stackSize,
int priority = 1,
34 if (
xHandle !=
nullptr)
return false;
39 LOGE(
"Task stack allocation failed");
44 nullptr,
nullptr, priority, 0, K_FOREVER);
51 if (name !=
nullptr) {
52 k_thread_name_set(
xHandle, name);
72 bool begin(std::function<
void()> process) {
73 LOGI(
"starting task");
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGE(...)
Definition AudioLoggerIDF.h:30