From 4b9fe1e28ab9de59ea6dd0cfc99a774cc37a64a8 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 19 May 2008 19:15:38 +0000 Subject: [PATCH] Add signed portBASE_TYPE xTaskIsTaskSuspended( xTaskHandle xTask ); --- 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