File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
portable/ThirdParty/GCC/Posix Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5252* Note: When using LLDB (the default debugger on macOS) with this port,
5353* suppress SIGUSR1 to prevent debugger interference. This can be
5454* done by adding the following line to ~/.lldbinit:
55- * `process handle SIGUSR1 -n true -p true -s false`
55+ * `process handle SIGUSR1 -n true -p false -s false`
5656*----------------------------------------------------------*/
5757#ifdef __linux__
5858 #define _GNU_SOURCE
@@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
384384
385385void vPortYield ( void )
386386{
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+
387391 vPortEnterCritical ();
388392
389393 prvPortYieldFromISR ();
You can’t perform that action at this time.
0 commit comments