summaryrefslogtreecommitdiff
path: root/ACE/performance-tests/Misc/preempt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/performance-tests/Misc/preempt.cpp')
-rw-r--r--ACE/performance-tests/Misc/preempt.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/ACE/performance-tests/Misc/preempt.cpp b/ACE/performance-tests/Misc/preempt.cpp
index 22ba8d31661..20b70117e5a 100644
--- a/ACE/performance-tests/Misc/preempt.cpp
+++ b/ACE/performance-tests/Misc/preempt.cpp
@@ -37,10 +37,6 @@
#if defined (ACE_HAS_THREADS) || ! defined (ACE_LACKS_FORK)
-#if defined (ACE_HAS_STHREADS)
-# include <sys/lwp.h> /* for _lwp_self () */
-#endif /* ACE_HAS_STHREADS */
-
static const char usage [] = "[-? |\n"
#if defined (ACE_HAS_THREADS)
" [-f use fork instead of spawn]\n"
@@ -150,13 +146,9 @@ High_Priority_Task::svc ()
if (ACE_Thread::getprio (thr_handle, prio) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "getprio failed"), -1);
-#if defined (ACE_HAS_STHREADS)
- ACE_DEBUG ((LM_DEBUG, "(%P|%u|%t) High: prio = %d, priority_ = %d\n",
- _lwp_self (), prio, this->priority_));
-#else /* ! ACE_HAS_STHREADS */
ACE_DEBUG ((LM_DEBUG, "(%P|%t) High: prio = %d, priority_ = %d\n",
prio, this->priority_));
-#endif /* ! ACE_HAS_STHREADS */
+
ACE_ASSERT (this->priority_ == prio);
ACE_Time_Value pause (0, read_period);
@@ -251,13 +243,9 @@ Low_Priority_Task::svc ()
if (ACE_Thread::getprio (thr_handle, prio) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "getprio failed"), -1);
-#if defined (ACE_HAS_STHREADS)
- ACE_DEBUG ((LM_DEBUG, "(%P|%u|%t) Low: prio = %d, priority_ = %d\n",
- _lwp_self (), prio, this->priority_));
-#else /* ! ACE_HAS_STHREADS */
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Low: prio = %d, priority_ = %d\n",
prio, this->priority_));
-#endif /* ! ACE_HAS_STHREADS */
+
ACE_ASSERT (this->priority_ == prio);
u_long iterations = 0;
@@ -371,7 +359,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
if (get_options (argc, argv))
ACE_OS::exit (-1);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
+ // Enable FIFO scheduling
if (ACE_OS::sched_params (
ACE_Sched_Params (
ACE_SCHED_FIFO,