mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-29 08:13:52 +02:00
Add signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); Previously this was a private function.
This commit is contained in:
parent
5a2790a998
commit
2888b15b7e
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user