summaryrefslogtreecommitdiff
path: root/ace/Task.h
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-28 08:33:01 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-28 08:33:01 +0000
commitde4ac0920e484eed3280fbcd3faebc6316440b15 (patch)
treea5955726d74b73b1993849f7120310e4356dc957 /ace/Task.h
parent53dd14e3b68ea8a23935da00b3ee98cb08668791 (diff)
downloadATCD-de4ac0920e484eed3280fbcd3faebc6316440b15.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Task.h')
-rw-r--r--ace/Task.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/Task.h b/ace/Task.h
index 2b800aa934f..5ae87e26596 100644
--- a/ace/Task.h
+++ b/ace/Task.h
@@ -92,7 +92,8 @@ public:
int force_active = 0,
long priority = ACE_DEFAULT_THREAD_PRIORITY,
int grp_id = -1,
- ACE_Task_Base *task = 0);
+ ACE_Task_Base *task = 0,
+ ACE_hthread_t thread_handles[] = 0);
// Turn the task into an active object, i.e., having <n_threads> of
// control, all running at the <priority> level (see below) with the same
// <grp_id>, all of which invoke <Task::svc>. Returns -1 if failure
@@ -119,6 +120,11 @@ public:
// explicit value is given, it is used. Note that actual priority
// values are EXTREMEMLY implementation-dependent, and are probably
// best avoided.
+ //
+ // 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.
virtual int wait (void);
// Wait for all threads running in this task to exit.