50struct cooja_mtarch_thread;
67void cooja_mtarch_start(
struct cooja_mtarch_thread *thread,
68 void (* function)(
void *data),
78void cooja_mtarch_yield(
void);
90void cooja_mtarch_exec(
struct cooja_mtarch_thread *thread);
93#ifndef COOJA_MTARCH_STACKSIZE
94#define COOJA_MTARCH_STACKSIZE 1024
97struct cooja_mtarch_thread {
99 uintptr_t stack[COOJA_MTARCH_STACKSIZE];
100} __attribute__ ((aligned (16)));
102struct cooja_mt_thread {
104 struct cooja_mtarch_thread thread;
126void cooja_mt_start(
struct cooja_mt_thread *thread,
void (* function)(
void *),
void *data);
141void cooja_mt_exec(
struct cooja_mt_thread *thread);
150void cooja_mt_yield(
void);