]> git.sur5r.net Git - freertos/commitdiff
Add signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); Previously this...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 19 May 2008 19:17:56 +0000 (19:17 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 19 May 2008 19:17:56 +0000 (19:17 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@362 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index ade94f971c015798db82c2183e0f9d25e553f756..06a6a9864064596462f325c9b7007c45388ea903 100644 (file)
@@ -403,15 +403,6 @@ static tskTCB *prvAllocateTCBAndStack( unsigned portSHORT usStackDepth );
 \r
 #endif\r
 \r
-/*\r
- * Checks that a task being resumed (unsuspended) is actually in the Suspended\r
- * state.\r
- */\r
-#if ( INCLUDE_vTaskSuspend == 1 )\r
-\r
-       static portBASE_TYPE prvIsTaskSuspended( const tskTCB * const pxTCB );  \r
-\r
-#endif\r
 \r
 /*lint +e956 */\r
 \r
@@ -914,9 +905,10 @@ tskTCB * pxNewTCB;
 \r
 #if ( INCLUDE_vTaskSuspend == 1 )\r
 \r
-       static portBASE_TYPE prvIsTaskSuspended( const tskTCB * const pxTCB )\r
+       signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask )\r
        {\r
        portBASE_TYPE xReturn = pdFALSE;\r
+       const tskTCB * const pxTCB = ( tskTCB * ) xTask;\r
 \r
                /* Is the task we are attempting to resume actually in the\r
                suspended list? */\r
@@ -958,7 +950,7 @@ tskTCB * pxNewTCB;
                {\r
                        taskENTER_CRITICAL();\r
                        {\r
-                               if( prvIsTaskSuspended( pxTCB ) == pdTRUE )\r
+                               if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )\r
                                {\r
                                        traceTASK_RESUME( pxTCB );\r
 \r
@@ -993,7 +985,7 @@ tskTCB * pxNewTCB;
 \r
                pxTCB = ( tskTCB * ) pxTaskToResume;\r
 \r
-               if( prvIsTaskSuspended( pxTCB ) == pdTRUE )\r
+               if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )\r
                {\r
                        traceTASK_RESUME_FROM_ISR( pxTCB );\r
 \r