50 struct cooja_mtarch_thread;
67 void cooja_mtarch_start(
struct cooja_mtarch_thread *thread,
68 void (*
function)(
void *data),
78 void cooja_mtarch_yield(
void);
90 void cooja_mtarch_exec(
struct cooja_mtarch_thread *thread);
96 #ifndef COOJA_MTARCH_STACKSIZE 97 #define COOJA_MTARCH_STACKSIZE 1024 100 struct cooja_mtarch_thread {
102 uintptr_t stack[COOJA_MTARCH_STACKSIZE];
103 } __attribute__ ((aligned (16)));
105 struct cooja_mt_thread {
107 struct cooja_mtarch_thread thread;
129 void cooja_mt_start(
struct cooja_mt_thread *thread,
void (*
function)(
void *),
void *data);
144 void cooja_mt_exec(
struct cooja_mt_thread *thread);
153 void cooja_mt_yield(
void);