summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2023-01-18 10:14:13 +0100
committerGitHub <noreply@github.com>2023-01-18 10:14:13 +0100
commitdfc5c60f27c6ea1f566b1819ebbc3d979c19ffad (patch)
tree8ed59abfe6eaabafec257cda3b99bd617ec5d18c /TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
parent956dcabf4bdd4fb3ec1be53c392398b495af27cf (diff)
parentd97b6edbeeb9a007f65e10e069a753bc087e998f (diff)
downloadATCD-dfc5c60f27c6ea1f566b1819ebbc3d979c19ffad.tar.gz
Merge pull request #2035 from jwillemsen/jwi-cleanupsolaris
Cleanup Solaris support
Diffstat (limited to 'TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp')
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
index d2eaa541490..cc1bc13d837 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
@@ -136,10 +136,9 @@ ECT_Throughput::run (int argc, ACE_TCHAR* argv[])
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
+ ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
+ priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO, priority);
+ // Enable FIFO scheduling
if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
priority,
ACE_SCOPE_PROCESS)) != 0)