You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the freeRTOS ticks/sec is at 100 ( the default value ), the z_sleep_ms doesn´t suspend the thread and creates starvation for the other threads
z_result_t z_sleep_ms(size_t time) {
z_time_t start = z_time_now();
// Most sleep APIs promise to sleep at least whatever you asked them to.
// This may compound, so this approach may make sleeps longer than expected.
// This extra check tries to minimize the amount of extra time it might sleep.
while (z_time_elapsed_ms(&start) < time) {
vTaskDelay(1 / portTICK_PERIOD_MS); // the argument becomes 0.
}
return 0;
}
Describe the bug
When the freeRTOS ticks/sec is at 100 ( the default value ), the z_sleep_ms doesn´t suspend the thread and creates starvation for the other threads
should be replaced with
To reproduce
Use sample p_sub sources for espidf
System info
Any ESP32 with ESPIDF
The text was updated successfully, but these errors were encountered: