44#include "sys/cooja_mt.h"
58static struct cooja_mt_thread rtimer_thread;
59static struct cooja_mt_thread process_run_thread;
62rtimer_thread_loop(
void *data)
73process_run_thread_loop(
void *data)
76 simProcessRunValue = 1;
87 cooja_mt_start(&rtimer_thread, &rtimer_thread_loop, NULL);
88 cooja_mt_start(&process_run_thread, &process_run_thread_loop, NULL);
94 simProcessRunValue = 0;
97 doActionsBeforeTick();
106 cooja_mt_exec(&rtimer_thread);
108 if(simProcessRunValue == 0) {
111 cooja_mt_exec(&process_run_thread);
115 doActionsAfterTick();
Default definitions of C compiler quirk work-arounds.
int etimer_pending(void)
Check if there are any non-expired event timers.
void etimer_request_poll(void)
Make the event timer aware that the clock has changed.
clock_time_t etimer_next_expiration_time(void)
Get next event timer expiration time.