mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Make AsyncTCP yield each loop, to let other same-prio tasks get a turn
This commit is contained in:
parent
5f23463914
commit
de770144a2
1 changed files with 5 additions and 0 deletions
|
@ -228,6 +228,11 @@ void _asynctcpsock_task(void *)
|
|||
sockList.clear();
|
||||
|
||||
xSemaphoreGiveRecursive(_asyncsock_mutex);
|
||||
|
||||
// Battery-Emulator modification: Yield so that other same-priority
|
||||
// tasks on the same core get a turn, otherwise heavy HTTP traffic will
|
||||
// exclude them.
|
||||
taskYIELD();
|
||||
}
|
||||
|
||||
vTaskDelete(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue