Example #1
0
/**
 * 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);
}
Example #2
0
/**
 * Remove timer from run loop
 */
int run_loop_remove_timer(timer_source_t *ts){
    run_loop_assert();
    return the_run_loop->remove_timer(ts);
}
Example #3
0
/**
 * 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);
}
Example #4
0
/**
 * 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);
}
Example #5
0
/**
 * Execute run_loop
 */
void run_loop_execute() {
    run_loop_assert();
    the_run_loop->execute();
}
Example #6
0
void run_loop_timer_dump(){
    run_loop_assert();
    the_run_loop->dump_timer();
}
Example #7
0
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);
}