/** * Add timer to run_loop (keep list sorted) */ void run_loop_add_timer(timer_source_t *ts){ run_loop_assert(); the_run_loop->add_timer(ts); }
/** * Remove timer from run loop */ int run_loop_remove_timer(timer_source_t *ts){ run_loop_assert(); return the_run_loop->remove_timer(ts); }
/** * Remove data_source from run loop */ int run_loop_remove_data_source(data_source_t *ds){ run_loop_assert(); return the_run_loop->remove_data_source(ds); }
/** * Add data_source to run_loop */ void run_loop_add_data_source(data_source_t *ds){ run_loop_assert(); the_run_loop->add_data_source(ds); }
/** * Execute run_loop */ void run_loop_execute() { run_loop_assert(); the_run_loop->execute(); }
void run_loop_timer_dump(){ run_loop_assert(); the_run_loop->dump_timer(); }
void run_loop_set_timer(timer_source_t *a, uint32_t timeout_in_ms){ run_loop_assert(); the_run_loop->set_timer(a, timeout_in_ms); }