mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-27 23:37:25 +00:00
btstack_run_loop: don't call btstack_run_loop_remove_timer from platform implementation
This commit is contained in:
parent
9d139fbae6
commit
b7832c7f15
@ -192,7 +192,7 @@ static void btstack_run_loop_freertos_task(void *pvParameter){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// remove timer before processing it to allow handler to re-register with run loop
|
// 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);
|
log_debug("RL: first timer %p", ts->process);
|
||||||
ts->process(ts);
|
ts->process(ts);
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ static void btstack_run_loop_posix_execute(void) {
|
|||||||
log_debug("btstack_run_loop_posix_execute: process timer %p\n", ts);
|
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
|
// 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);
|
ts->process(ts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ static void btstack_run_loop_wiced_execute(void) {
|
|||||||
uint32_t now = btstack_run_loop_wiced_get_time_ms();
|
uint32_t now = btstack_run_loop_wiced_get_time_ms();
|
||||||
if (ts->timeout < now){
|
if (ts->timeout < now){
|
||||||
// remove timer before processing it to allow handler to re-register with run loop
|
// 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);
|
// printf("RL: timer %p\n", ts->process);
|
||||||
ts->process(ts);
|
ts->process(ts);
|
||||||
continue;
|
continue;
|
||||||
|
@ -216,7 +216,7 @@ static void btstack_run_loop_windows_execute(void) {
|
|||||||
log_debug("btstack_run_loop_windows_execute: process timer %p\n", ts);
|
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
|
// 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);
|
ts->process(ts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user