File tree 1 file changed +5
-1
lines changed
portable/ThirdParty/GCC/Posix
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 52
52
* Note: When using LLDB (the default debugger on macOS) with this port,
53
53
* suppress SIGUSR1 to prevent debugger interference. This can be
54
54
* 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`
56
56
*----------------------------------------------------------*/
57
57
#ifdef __linux__
58
58
#define _GNU_SOURCE
@@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
384
384
385
385
void vPortYield ( void )
386
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
+
387
391
vPortEnterCritical ();
388
392
389
393
prvPortYieldFromISR ();
You can’t perform that action at this time.
0 commit comments