summaryrefslogtreecommitdiff
path: root/ace/Task.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/Task.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/Task.h')
-rw-r--r--ace/Task.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ace/Task.h b/ace/Task.h
index 28e02dc6bb9..c87168175af 100644
--- a/ace/Task.h
+++ b/ace/Task.h
@@ -155,12 +155,19 @@ public:
* handles being spawned. Returns -1 on failure (<errno> will
* explain...), otherwise returns the group id of the threads.
*
+ * Assigning <task> allows you to associate the newly spwaned
+ * threads with an instance of ACE_Task_Base. If <task> == 0, then
+ * the new threads are automatically with <this> ACE_Task_Base.
+ * Setting the <task> argument to value other than <this> make the
+ * thread manipulating functions, like wait(), suspend(), resume()
+ * useless. Threads spawned with user specified <task> value must
+ * be manipulated thru ACE_Thread_Manager directly.
+ *
* 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.
* Likewise, if <stack_size> != 0 it is assumed to be an array of
* <n> values indicating how big each of the corresponding <stack>s
- * are.
- */
+ * are. */
virtual int activate (long flags = THR_NEW_LWP | THR_JOINABLE,
int n_threads = 1,
int force_active = 0,