POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread

This commit is contained in:
John Boiles 2025-02-12 10:37:51 -08:00
parent 29e817b70e
commit da54520beb

View file

@ -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();