POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread (#1247)
This commit is contained in:
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 )
|
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();
|
vPortEnterCritical();
|
||||||
|
|
||||||
prvPortYieldFromISR();
|
prvPortYieldFromISR();
|
||||||
|
Reference in New Issue
Block a user