summaryrefslogtreecommitdiff
path: root/ace/Task.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-01-18 22:13:54 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-01-18 22:13:54 +0000
commitf8dd4261764cfeb4e1f63fcb3a8d02522e2b917a (patch)
treef9b755315754f50e17bf701fe8ec193a2cc52461 /ace/Task.h
parent367187492835b4f709d17962af0dff632b1ce65f (diff)
downloadATCD-f8dd4261764cfeb4e1f63fcb3a8d02522e2b917a.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Task.h')
-rw-r--r--ace/Task.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ace/Task.h b/ace/Task.h
index 42cbebaf79f..c3feafd7463 100644
--- a/ace/Task.h
+++ b/ace/Task.h
@@ -100,7 +100,9 @@ public:
long priority = ACE_DEFAULT_THREAD_PRIORITY,
int grp_id = -1,
ACE_Task_Base *task = 0,
- ACE_hthread_t thread_handles[] = 0);
+ ACE_hthread_t thread_handles[] = 0,
+ void *stack[] = 0,
+ size_t stack_size[] = 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
@@ -132,6 +134,12 @@ public:
// 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.
+ //
+ // 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.
virtual int wait (void);
// Wait for all threads running in this task to exit.