We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a490e commit 77ec05eCopy full SHA for 77ec05e
tasks.c
@@ -3843,6 +3843,18 @@ static void prvCheckTasksWaitingTermination( void )
3843
}
3844
3845
#endif /* INCLUDE_vTaskSuspend */
3846
+
3847
+ /* Tasks can be in pending ready list and other state list at the
3848
+ * same time. These tasks are in ready state no matter what state
3849
+ * list the task is in. */
3850
+ taskENTER_CRITICAL();
3851
+ {
3852
+ if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) != pdFALSE )
3853
3854
+ pxTaskStatus->eCurrentState = eReady;
3855
+ }
3856
3857
+ taskEXIT_CRITICAL();
3858
3859
3860
else
0 commit comments