diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-01-18 22:13:54 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-01-18 22:13:54 +0000 |
commit | 7e61b1a3aa9509d86bc6291d51c43d82005652b1 (patch) | |
tree | f9b755315754f50e17bf701fe8ec193a2cc52461 /ace/Task.h | |
parent | f864e3fc65b1f1f11a262b8cd842253336f91b56 (diff) | |
download | ATCD-7e61b1a3aa9509d86bc6291d51c43d82005652b1.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Task.h')
-rw-r--r-- | ace/Task.h | 10 |
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. |