diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-13 19:26:14 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-13 19:26:14 +0000 |
commit | 9c60a258ea59a1438cd1eae39ece12f88f318697 (patch) | |
tree | 90b358c4d4f44f3780e1aaa610c97e60865322d7 /ace/Thread.h | |
parent | c34e71b95823eeede25aeeaa3b2d50c3736f5953 (diff) | |
download | ATCD-9c60a258ea59a1438cd1eae39ece12f88f318697.tar.gz |
use ACE_DEFAULT_THREAD_PRIORITY instead of -1, because -1 is a valid priority on Win32
Diffstat (limited to 'ace/Thread.h')
-rw-r--r-- | ace/Thread.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ace/Thread.h b/ace/Thread.h index 49faf53aec7..7faae76df0d 100644 --- a/ace/Thread.h +++ b/ace/Thread.h @@ -34,7 +34,7 @@ public: long flags = THR_NEW_LWP, ACE_thread_t *t_id = 0, ACE_hthread_t *t_handle = 0, - long priority = -1, + long priority = ACE_DEFAULT_THREAD_PRIORITY, void *stack = 0, size_t stack_size = 0); // Spawn a new thread having <{flags}> attributes and running @@ -50,7 +50,8 @@ public: // THR_SCHED_RR, THR_SCHED_DEFAULT // = END<INDENT> // - // By default, or if <{priority}> is set to -1, an "appropriate" + // By default, or if <{priority}> is set to ACE_DEFAULT_THREAD_PRIORITY, + // an "appropriate" // priority value for the given scheduling policy (specified in // <{flags}>, e.g., <THR_SCHED_DEFAULT>) is used. This value is // calculated dynamically, and is the median value between the @@ -63,7 +64,7 @@ public: ACE_THR_FUNC func, void *arg = 0, long flags = THR_NEW_LWP, - long priority = -1, + long priority = ACE_DEFAULT_THREAD_PRIORITY, void *stack[] = 0, size_t stack_size[] = 0); // Spawn N new threads, which execute <func> with argument <arg>. @@ -82,7 +83,7 @@ public: ACE_THR_FUNC func, void *arg, long flags, - long priority = -1, + long priority = ACE_DEFAULT_THREAD_PRIORITY, void *stack[] = 0, size_t stack_size[] = 0, ACE_hthread_t thread_handles[] = 0); |