summaryrefslogtreecommitdiff
path: root/tests/Dynamic_Priority_Test.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-23 22:47:49 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-23 22:47:49 +0000
commit3cc75b684f3d3709724290011f988317dcb3ebf7 (patch)
treee8d647c53bb3b0b955a7b2ae421fa0189326a322 /tests/Dynamic_Priority_Test.cpp
parente68eec7eb983c8b05b5b7e7b319609760c251833 (diff)
downloadATCD-3cc75b684f3d3709724290011f988317dcb3ebf7.tar.gz
ChangeLogTag:Wed Feb 23 14:45:21 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'tests/Dynamic_Priority_Test.cpp')
-rw-r--r--tests/Dynamic_Priority_Test.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Dynamic_Priority_Test.cpp b/tests/Dynamic_Priority_Test.cpp
index 1e9aca52354..65f8b353640 100644
--- a/tests/Dynamic_Priority_Test.cpp
+++ b/tests/Dynamic_Priority_Test.cpp
@@ -107,6 +107,7 @@ const int vx_max_queue = INT_MAX;
const int vx_msg_size = 32;
#endif /* defined (VXWORKS) */
+#if defined (ACE_HAS_TIMED_MESSAGE_BLOCKS)
// Loading parameters (number of messages to push through queues) for
// performance tests.
static int MIN_LOAD = 20;
@@ -257,8 +258,8 @@ run_order_test (ACE_Message_Queue<ACE_SYNCH>* msg_queue,
supplier_args.array_[i]->msg_priority (i);
// Assign every other message short or long execution time.
- supplier_args.array_[i]->msg_execution_time (((i % 2)
- ? slow_execution
+ supplier_args.array_[i]->msg_execution_time (((i % 2)
+ ? slow_execution
: fast_execution));
}
@@ -535,8 +536,8 @@ run_performance_test (u_int min_load,
-1);
// Assign every other message short or long execution time.
- supplier_args.array_[i]->msg_execution_time (((i % 2)
- ? slow_execution
+ supplier_args.array_[i]->msg_execution_time (((i % 2)
+ ? slow_execution
: fast_execution));
}
@@ -689,6 +690,7 @@ run_performance_test (u_int min_load,
delete laxity_queue;
return 0;
}
+#endif /* ACE_HAS_TIMED_MESSAGE_BLOCKS */
int
main (int, ASYS_TCHAR *[])