diff options
author | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-23 04:25:27 +0000 |
---|---|---|
committer | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-23 04:25:27 +0000 |
commit | ae6d616cc6cd31463fdad72dc7e314f826477886 (patch) | |
tree | 7286149386778a8d8008b89addbff955dfb1fd9c /tests/Priority_Task_Test.cpp | |
parent | e38b64a67fba55235a48f7d943ff8c9c1a7f6544 (diff) | |
download | ATCD-ae6d616cc6cd31463fdad72dc7e314f826477886.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/Priority_Task_Test.cpp')
-rw-r--r-- | tests/Priority_Task_Test.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/Priority_Task_Test.cpp b/tests/Priority_Task_Test.cpp index 68970495ad7..dea09daf1ce 100644 --- a/tests/Priority_Task_Test.cpp +++ b/tests/Priority_Task_Test.cpp @@ -19,6 +19,7 @@ #include "ace/Service_Config.h" #include "ace/Task.h" +#include "ace/Thread_Priority.h" #include "test_config.h" #if defined (ACE_HAS_THREADS) @@ -52,9 +53,12 @@ Priority_Task::close (u_long) int Priority_Task::open (void *arg) { - this->priority_ = *(int *) arg; + ACE_Thread_Priority priority(ACE_Thread_Priority::ACE_HIGH_PRIORITY_CLASS, + ACE_Thread_Priority::Thread_Priority(*(int *) arg)); + // Become an active object. - ACE_ASSERT (this->activate (THR_NEW_LWP, 1, 0, this->priority_) != -1); + ACE_ASSERT (this->activate (THR_NEW_LWP, 1, 0, + priority.os_default_thread_priority()) != -1); return 0; } @@ -90,7 +94,7 @@ main (int, char *[]) int i; - // Spawn of ACE_MAX_ITERATIONS of tasks, passing each one their + // Spawn off ACE_MAX_ITERATIONS of tasks, passing each one their // iteration number as their priority. for (i = 0; i < ACE_MAX_ITERATIONS; i++) |