diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-19 19:17:56 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-19 19:17:56 +0000 |
commit | bc9ab591ef0ee98e3678dfa691d3287ae0b42d80 (patch) | |
tree | 12e6f48bd97f271b3f1069fe9b57638efe7bba19 /Source | |
parent | 9b283f483db18d06b2d071021210af0d9c3f96d8 (diff) | |
download | freertos-bc9ab591ef0ee98e3678dfa691d3287ae0b42d80.tar.gz freertos-bc9ab591ef0ee98e3678dfa691d3287ae0b42d80.tar.bz2 freertos-bc9ab591ef0ee98e3678dfa691d3287ae0b42d80.tar.xz |
Add signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); Previously this was a private function.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@362 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r-- | Source/tasks.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/tasks.c b/Source/tasks.c index ade94f97..06a6a986 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -403,15 +403,6 @@ static tskTCB *prvAllocateTCBAndStack( unsigned portSHORT usStackDepth ); #endif
-/*
- * Checks that a task being resumed (unsuspended) is actually in the Suspended
- * state.
- */
-#if ( INCLUDE_vTaskSuspend == 1 )
-
- static portBASE_TYPE prvIsTaskSuspended( const tskTCB * const pxTCB );
-
-#endif
/*lint +e956 */
@@ -914,9 +905,10 @@ tskTCB * pxNewTCB; #if ( INCLUDE_vTaskSuspend == 1 )
- static portBASE_TYPE prvIsTaskSuspended( const tskTCB * const pxTCB )
+ signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask )
{
portBASE_TYPE xReturn = pdFALSE;
+ const tskTCB * const pxTCB = ( tskTCB * ) xTask;
/* Is the task we are attempting to resume actually in the
suspended list? */
@@ -958,7 +950,7 @@ tskTCB * pxNewTCB; {
taskENTER_CRITICAL();
{
- if( prvIsTaskSuspended( pxTCB ) == pdTRUE )
+ if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )
{
traceTASK_RESUME( pxTCB );
@@ -993,7 +985,7 @@ tskTCB * pxNewTCB; pxTCB = ( tskTCB * ) pxTaskToResume;
- if( prvIsTaskSuspended( pxTCB ) == pdTRUE )
+ if( xTaskIsTaskSuspended( pxTCB ) == pdTRUE )
{
traceTASK_RESUME_FROM_ISR( pxTCB );
|