diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-22 17:06:56 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-22 17:06:56 +0000 |
commit | 90372523be18c6138833974cdf19c57e14b94c99 (patch) | |
tree | 5c8e5bd7bdc92127da2ce79f404b8115ecab886c /performance-tests/Misc | |
parent | 4f8aa9d9ecccd4ba93020be256475f9886afd1cb (diff) | |
download | ATCD-90372523be18c6138833974cdf19c57e14b94c99.tar.gz |
create all threads as detached, so they don't have to be joined
Diffstat (limited to 'performance-tests/Misc')
-rw-r--r-- | performance-tests/Misc/context_switch_time.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp index 5e84bf40d5f..c3b6e8cbdc7 100644 --- a/performance-tests/Misc/context_switch_time.cpp +++ b/performance-tests/Misc/context_switch_time.cpp @@ -112,7 +112,8 @@ Low_Priority_Null_Task::Low_Priority_Null_Task() : ACE_DEBUG ((LM_DEBUG, "Low_Priority_Null_Task ctor\n")); #endif /* DEBUG */ - this->activate (THR_BOUND | THR_SCHED_FIFO | new_lwp, 1, 0, LOW_PRIORITY); + this->activate (THR_BOUND | THR_DETACHED | THR_SCHED_FIFO | new_lwp, + 1, 0, LOW_PRIORITY); #if DEBUG > 0 ACE_DEBUG ((LM_DEBUG, "Low_Priority_Null_Task ctor, activated\n")); @@ -195,7 +196,8 @@ Suspend_Resume_Test::Suspend_Resume_Test (const ACE_UINT32 iterations) : ACE_DEBUG ((LM_DEBUG, "Suspend_Resume_Test ctor\n")); #endif /* DEBUG */ - this->activate (THR_BOUND | THR_SCHED_FIFO | new_lwp, 1, 0, HIGH_PRIORITY); + this->activate (THR_BOUND | THR_DETACHED | THR_SCHED_FIFO | new_lwp, + 1, 0, HIGH_PRIORITY); } Suspend_Resume_Test::~Suspend_Resume_Test() @@ -303,7 +305,8 @@ High_Priority_Simple_Task::High_Priority_Simple_Task() : ACE_DEBUG ((LM_DEBUG, "High_Priority_Simple_Task ctor\n")); #endif /* DEBUG */ - this->activate (THR_BOUND | THR_SCHED_FIFO | new_lwp, 1, 0, HIGH_PRIORITY); + this->activate (THR_BOUND | THR_DETACHED | THR_SCHED_FIFO | new_lwp, + 1, 0, HIGH_PRIORITY); #if DEBUG > 0 ACE_DEBUG ((LM_DEBUG, "High_Priority_Simple_Task ctor, activated\n")); @@ -406,7 +409,8 @@ Ping_Suspend_Resume_Test::Ping_Suspend_Resume_Test ( ACE_DEBUG ((LM_DEBUG, "Ping_Suspend_Resume_Test ctor\n")); #endif /* DEBUG */ - this->activate (THR_BOUND | THR_SCHED_FIFO | new_lwp, 1, 0, LOW_PRIORITY); + this->activate (THR_BOUND | THR_DETACHED | THR_SCHED_FIFO | new_lwp, + 1, 0, LOW_PRIORITY); } Ping_Suspend_Resume_Test::~Ping_Suspend_Resume_Test() @@ -532,7 +536,8 @@ Yield_Test::Yield_Test (const ACE_UINT32 iterations) : timer_.start (); - this->activate (THR_BOUND | THR_SCHED_FIFO | new_lwp, 2, 0, LOW_PRIORITY); + this->activate (THR_BOUND | THR_DETACHED | THR_SCHED_FIFO | new_lwp, + 2, 0, LOW_PRIORITY); timer_barrier_.wait (); |