summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.h
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-01 06:09:05 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-01 06:09:05 +0000
commite281e13f1dab7f8d07db1b7e3a0e572120f5a66a (patch)
tree3c519ac71e5e595cffaaa2108d721ccbb2baa3b7 /ace/Thread_Manager.h
parentf32e83ea73bece644f16fbb92c464358be9c829f (diff)
downloadATCD-e281e13f1dab7f8d07db1b7e3a0e572120f5a66a.tar.gz
ChangeLogTag:Fri Feb 01 00:00:12 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/Thread_Manager.h')
-rw-r--r--ace/Thread_Manager.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h
index e2c6d190db1..1d063c5ee71 100644
--- a/ace/Thread_Manager.h
+++ b/ace/Thread_Manager.h
@@ -521,10 +521,24 @@ public:
* an array of <n> values indicating how big each of the
* corresponding <stack>s are. If <thread_handles> != 0 it is
* assumed to be an array of <n> thread_handles that will be
- * assigned the values of the thread handles being spawned. Returns
- * -1 on failure (<errno> will explain...), otherwise returns the
- * group id of the threads.
- */
+ * assigned the values of the thread handles being spawned.
+ *
+ * Threads in Thread_Manager can be maniputated in groups based on
+ * <grp_id> or <task> using functions such as kill_grp() or
+ * cancel_task().
+ *
+ * If <grp_id> is assigned, the newly spawned threads are added into
+ * the group. Otherwise, the Thread_Manager assigns these <n>
+ * threads with a grp_id. You should choose either assigning
+ * <grp_id> everytime, or let the Thread_Manager handles it for
+ * you consistently.
+ *
+ * The argument <task> is usually assigned by
+ * ACE_Task_Base::activate. It associate the newly spawned threads
+ * with an ACE_Task instance.
+ *
+ * @retval -1 on failure (<errno> will explain...), otherwise returns the
+ * group id of the threads. */
int spawn_n (ACE_thread_t thread_ids[],
size_t n,
ACE_THR_FUNC func,