mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread
This commit is contained in:
parent
29e817b70e
commit
da54520beb
4
portable/ThirdParty/GCC/Posix/port.c
vendored
4
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
|
|||
|
||||
void vPortYield( void )
|
||||
{
|
||||
/* This must never be called from outside of a FreeRTOS-owned thread, or
|
||||
* the thread could get stuck in a suspended state. */
|
||||
configASSERT( prvIsFreeRTOSThread() == pdTRUE );
|
||||
|
||||
vPortEnterCritical();
|
||||
|
||||
prvPortYieldFromISR();
|
||||
|
|
Loading…
Reference in a new issue