From 8dffb01631f6a61133f84f726eb7ed49404899f1 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 19 May 2008 19:15:38 +0000 Subject: [PATCH] Add signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@360 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/include/task.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/include/task.h b/Source/include/task.h index f9299dc95..ebb17b50d 100644 --- a/Source/include/task.h +++ b/Source/include/task.h @@ -786,6 +786,16 @@ void vTaskSuspendAll( void ); */ signed portBASE_TYPE xTaskResumeAll( void ); +/** + * task. h + *
signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask );
+ * + * Utility task that simply returns pdTRUE if the task referenced by xTask is + * currently in the Suspended state, or pdFALSE if the task referenced by xTask + * is in any other state. + * + */ +signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); /*----------------------------------------------------------- * TASK UTILITIES -- 2.39.5