We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e817b commit 15ec8b8Copy full SHA for 15ec8b8
portable/ThirdParty/GCC/Posix/port.c
@@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
384
385
void vPortYield( void )
386
{
387
+ /* This must never be called from outside of a FreeRTOS-owned thread, or
388
+ * the thread could get stuck in a suspended state. */
389
+ configASSERT( prvIsFreeRTOSThread() == pdTRUE );
390
+
391
vPortEnterCritical();
392
393
prvPortYieldFromISR();
0 commit comments