summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-01 21:04:29 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-01 21:04:29 +0000
commitcf7d3d3ebb77d64020aed428f2dd3ca903ac4d76 (patch)
tree710bdc83e8fb90bd2314129dc3c48cb4d313702c
parent71c1f3228aad09c194e6ea4e0d336a1bfdc53ecf (diff)
downloadATCD-cf7d3d3ebb77d64020aed428f2dd3ca903ac4d76.tar.gz
*** empty log message ***
-rw-r--r--ace/Thread_Manager.h37
1 files changed, 7 insertions, 30 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h
index fc194eb6579..8c7a9172218 100644
--- a/ace/Thread_Manager.h
+++ b/ace/Thread_Manager.h
@@ -496,33 +496,9 @@ public:
size_t stack_size = 0);
/**
- * Spawn N new threads, which execute <func> with argument <arg>.
- * If <thread_ids> != 0 the thread_ids of successfully spawned
- * threads will be placed into the <thread_ids> buffer (which must
- * be the same size as <n>). If <stack> != 0 it is assumed to be an
- * array of <n> pointers to the base of the stacks to use for the
- * threads being spawned. If <stack_size> != 0 it is assumed to be
- * 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.
- *
- * 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 associates the newly spawned
- * threads with an ACE_Task instance, which defaults to <this>.
- *
- * @retval -1 on failure (<errno> will explain...), otherwise returns the
- * group id of the threads.
+ * Create N new threads, all of which execute <func>.
+ * Returns: on success a unique group id that can be used to control
+ * all of the threads in the same group. On failure, returns -1.
*/
int spawn_n (size_t n,
ACE_THR_FUNC func,
@@ -558,11 +534,12 @@ public:
* you consistently.
*
* The argument <task> is usually assigned by
- * <ACE_Task_Base::activate>. It associates the newly spawned
- * threads with an ACE_Task instance, which defaults to <this>.
+ * 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. */
+ * group id of the threads.
+ */
int spawn_n (ACE_thread_t thread_ids[],
size_t n,
ACE_THR_FUNC func,