summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-11 20:44:21 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-11 20:44:21 +0000
commit66955391e4d5b94a9b59ad1bc0d5c49a924383a7 (patch)
treee9eb07b22c9e35a9937e64a6df79644aea71721c /performance-tests
parent9a62d9d1e9266dfb3eb645d7e078697db8c3d8ef (diff)
downloadATCD-66955391e4d5b94a9b59ad1bc0d5c49a924383a7.tar.gz
added ACE_SCOPE_PROCESS param to ACE_Sched_Params, so that this works on WIN32
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Misc/context_switch_time.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp
index 27aed5b9c42..1b7276f7298 100644
--- a/performance-tests/Misc/context_switch_time.cpp
+++ b/performance-tests/Misc/context_switch_time.cpp
@@ -657,12 +657,14 @@ main (int argc, char *argv [])
if (get_options (argc, argv)) ACE_OS::exit (-1);
if (ACE_OS::sched_params (
- ACE_Sched_Params (ACE_SCHED_FIFO,
- ACE_Sched_Params::priority_min (ACE_SCHED_FIFO))) != 0)
+ ACE_Sched_Params (
+ ACE_SCHED_FIFO,
+ ACE_Sched_Params::priority_min (ACE_SCHED_FIFO),
+ ACE_SCOPE_PROCESS)) != 0)
{
if (ACE_OS::last_error () == EPERM)
{
- ACE_OS::fprintf (stderr, "%s: user is not root, so remain in "
+ ACE_OS::fprintf (stderr, "%s: user is not superuser, so remain in "
"time-sharing class\n", argv[0]);
}
else