FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
arctic-alpaca 03db672b8f
Fix race in POSIX port vPortEndScheduler (#1262)
* Fix race in POSIX port `vPortEndScheduler`

The `vPortEndScheduler` checks whether it's a FreeRTOS thread after signalling the scheduler thread to stop. This creates a race between the check and the destruction of the thread key. By moving the signal to the scheduler thread after the check, the race is prevented.

* Code review suggestions

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-04-03 14:32:44 +05:30
..
utils Mark mutex as robust to prevent deadlocks (#1233) 2025-01-29 07:27:30 +05:30
FreeRTOS-simulator-for-Linux.url Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
port.c Fix race in POSIX port vPortEndScheduler (#1262) 2025-04-03 14:32:44 +05:30
portmacro.h Fix spelling typos (#1168) 2024-11-01 10:09:49 -07:00