POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread (#1247)

pull/1248/head
John Boiles 2 weeks ago committed by GitHub
parent 29e817b70e
commit 15ec8b8995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save