\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
\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
{\r
taskENTER_CRITICAL();\r
{\r
- if( prvIsTaskSuspended( pxTCB ) == pdTRUE )\r
+ if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )\r
{\r
traceTASK_RESUME( pxTCB );\r
\r
\r
pxTCB = ( tskTCB * ) pxTaskToResume;\r
\r
- if( prvIsTaskSuspended( pxTCB ) == pdTRUE )\r
+ if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )\r
{\r
traceTASK_RESUME_FROM_ISR( pxTCB );\r
\r