21 #ifndef COSA_NUCLEO_THREAD_HH 22 #define COSA_NUCLEO_THREAD_HH 76 __attribute__((always_inline))
79 if (thread ==
this) thread = &
s_main;
90 void delay(uint32_t ms);
140 void init(
void* stack);
void dequeue(Head *queue, bool flag=true)
static void begin(Thread *thread=NULL, size_t size=0)
static Thread * running()
static const size_t MAIN_STACK_MAX
void resume(Thread *thread)
void enqueue(Head *queue, Thread *thread=NULL)
static Thread * s_running