1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-05 12:42:22 +03:00

remove scheduled functions complexity overhead, change recurrent api (#6214)

* remove scheduled functions complexity overhead, change recurrent functions api
This commit is contained in:
david gauchard
2019-06-25 12:53:47 +02:00
committed by GitHub
parent f5a882d03d
commit 05be1a09e6
3 changed files with 131 additions and 113 deletions

View File

@ -87,7 +87,7 @@ void preloop_update_frequency() {
static inline void esp_yield_within_cont() __attribute__((always_inline));
static void esp_yield_within_cont() {
cont_yield(g_pcont);
run_scheduled_functions(SCHEDULED_FUNCTION_WITHOUT_YIELDELAYCALLS);
run_scheduled_recurrent_functions();
}
extern "C" void esp_yield() {
@ -129,7 +129,8 @@ static void loop_wrapper() {
setup_done = true;
}
loop();
run_scheduled_functions(SCHEDULED_FUNCTION_ONCE_PER_LOOP);
run_scheduled_functions();
run_scheduled_recurrent_functions();
esp_schedule();
}