summaryrefslogtreecommitdiff
path: root/ace/Task.h
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-03-06 05:06:22 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-03-06 05:06:22 +0000
commitcbba326027526832b3b5ed5f0f005203326ed2ca (patch)
treef4320058468a7161842f9114e04860c02bc39329 /ace/Task.h
parent977717812053cb3e3d8cf2956c29ebce0c5ff942 (diff)
downloadATCD-cbba326027526832b3b5ed5f0f005203326ed2ca.tar.gz
ChangeLogTag:Fri Mar 5 23:09:14 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Task.h')
-rw-r--r--ace/Task.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/ace/Task.h b/ace/Task.h
index 039bec6f273..69fb15b788c 100644
--- a/ace/Task.h
+++ b/ace/Task.h
@@ -168,7 +168,14 @@ public:
* 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.
+ *
+ * The argument <inherit_priority> is used to assign the priority of
+ * the calling thread on the spawned thread. The spawned thread will
+ * inherit the priority and scheduling policy of the invoking thread,
+ * if the value of the <inherit_priority> is set to true.
+ *
+ */
virtual int activate (long flags = THR_NEW_LWP | THR_JOINABLE,
int n_threads = 1,
int force_active = 0,
@@ -178,7 +185,8 @@ public:
ACE_hthread_t thread_handles[] = 0,
void *stack[] = 0,
size_t stack_size[] = 0,
- ACE_thread_t thread_ids[] = 0);
+ ACE_thread_t thread_ids[] = 0,
+ bool inherit_priority = false);
/**
* Block until there are no more threads running in this task.