btstack_run_loop: don't call btstack_run_loop_remove_timer from platform implementation

This commit is contained in:
Matthias Ringwald 2017-07-04 15:27:27 +02:00
parent 9d139fbae6
commit b7832c7f15
4 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ static void btstack_run_loop_freertos_task(void *pvParameter){
break;
}
// remove timer before processing it to allow handler to re-register with run loop
btstack_run_loop_remove_timer(ts);
btstack_run_loop_freertos_remove_timer(ts);
log_debug("RL: first timer %p", ts->process);
ts->process(ts);
}

View File

@ -224,7 +224,7 @@ static void btstack_run_loop_posix_execute(void) {
log_debug("btstack_run_loop_posix_execute: process timer %p\n", ts);
// remove timer before processing it to allow handler to re-register with run loop
btstack_run_loop_remove_timer(ts);
btstack_run_loop_posix_remove_timer(ts);
ts->process(ts);
}
}

View File

@ -133,7 +133,7 @@ static void btstack_run_loop_wiced_execute(void) {
uint32_t now = btstack_run_loop_wiced_get_time_ms();
if (ts->timeout < now){
// remove timer before processing it to allow handler to re-register with run loop
btstack_run_loop_remove_timer(ts);
btstack_run_loop_wiced_remove_timer(ts);
// printf("RL: timer %p\n", ts->process);
ts->process(ts);
continue;

View File

@ -216,7 +216,7 @@ static void btstack_run_loop_windows_execute(void) {
log_debug("btstack_run_loop_windows_execute: process timer %p\n", ts);
// remove timer before processing it to allow handler to re-register with run loop
btstack_run_loop_remove_timer(ts);
btstack_run_loop_windows_remove_timer(ts);
ts->process(ts);
}
}