summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2005-06-14 21:57:21 +0000
committerSteve Huston <shuston@riverace.com>2005-06-14 21:57:21 +0000
commitd6a84b9dd5feac51318dd54b6946795f8c22e32d (patch)
tree4f834725267c971eb4faa1bbfb0585130483eb57 /ace/Thread_Manager.h
parent306bb9a31dd6e47a38f01c517945b15009f9e2a1 (diff)
downloadATCD-d6a84b9dd5feac51318dd54b6946795f8c22e32d.tar.gz
ChangeLogTag:Tue Jun 14 17:52:39 2005 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Thread_Manager.h')
-rw-r--r--ace/Thread_Manager.h50
1 files changed, 40 insertions, 10 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h
index 2f67f811f82..0b55ce84978 100644
--- a/ace/Thread_Manager.h
+++ b/ace/Thread_Manager.h
@@ -797,11 +797,27 @@ public:
int num_threads_in_task (ACE_Task_Base *task);
/**
- * Returns in <task_list> a list of up to <n> <ACE_Tasks> in a
- * group. The caller must allocate the memory for <task_list>. In
- * case of an error, -1 is returned. If no requested values are
- * found, 0 is returned, otherwise correct number of retrieved
- * values are returned.
+ * Returns a list of ACE_Task_Base pointers corresponding to the tasks
+ * that have active threads in a specified thread group.
+ *
+ * @param grp_id The thread group ID to obtain task pointers for.
+ *
+ * @param task_list is a pointer to an array to receive the list of pointers.
+ * The caller is responsible for supplying an array with at
+ * least @arg n entries.
+ *
+ * @param n The maximum number of ACE_Task_Base pointers to write
+ * in @arg task_list.
+ *
+ * @retval If successful, the number of pointers returned, which will be
+ * no greater than @arg n. Returns -1 on error.
+ *
+ * @note This method has no way to indicate if there are more than
+ * @arg n ACE_Task_Base pointers available. Therefore, it may be
+ * wise to guess a larger value of @arg n than one thinks in cases
+ * where the exact number of tasks is not known.
+ *
+ * @sa num_tasks_in_group(), task_all_list()
*/
ssize_t task_list (int grp_id,
ACE_Task_Base *task_list[],
@@ -850,11 +866,25 @@ public:
size_t n);
/**
- * Returns in <task_list> a list of up to <n> <ACE_Tasks>. The
- * caller must allocate the memory for <task_list>. In case of an
- * error, -1 is returned. If no requested values are found, 0 is
- * returned, otherwise correct number of retrieved values are
- * returned.
+ * Returns a list of ACE_Task_Base pointers corresponding to the tasks
+ * that have active threads managed by this instance.
+ *
+ * @param task_list is a pointer to an array to receive the list of pointers.
+ * The caller is responsible for supplying an array with at
+ * least @arg n entries.
+ *
+ * @param n The maximum number of ACE_Task_Base pointers to write
+ * in @arg task_list.
+ *
+ * @retval If successful, the number of pointers returned, which will be
+ * no greater than @arg n. Returns -1 on error.
+ *
+ * @note This method has no way to indicate if there are more than
+ * @arg n ACE_Task_Base pointers available. Therefore, it may be
+ * wise to guess a larger value of @arg n than one thinks in cases
+ * where the exact number of tasks is not known.
+ *
+ * @sa count_threads()
*/
ssize_t task_all_list (ACE_Task_Base *task_list[],
size_t n);