diff options
author | sharath <sharath@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-02 04:11:15 +0000 |
---|---|---|
committer | sharath <sharath@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-02 04:11:15 +0000 |
commit | 08286dee04879d76bc8e115c673868eb26d867e6 (patch) | |
tree | a31c56e15d60c24fdbbd4ca9aad39e26e0edb93f /tests/Message_Queue_Test_Ex.cpp | |
parent | 9a7f38dcae0d222a4ee45cc4dd75d5928ee2ffb3 (diff) | |
download | ATCD-08286dee04879d76bc8e115c673868eb26d867e6.tar.gz |
ChangeLogTag: Thu Feb 01 22:00:17 2001 Sharath R. Cholleti <sharath@cs.wustl.edu>
Diffstat (limited to 'tests/Message_Queue_Test_Ex.cpp')
-rw-r--r-- | tests/Message_Queue_Test_Ex.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/tests/Message_Queue_Test_Ex.cpp b/tests/Message_Queue_Test_Ex.cpp index f8bb40aec58..7c808ff814e 100644 --- a/tests/Message_Queue_Test_Ex.cpp +++ b/tests/Message_Queue_Test_Ex.cpp @@ -70,9 +70,8 @@ struct Queue_Wrapper #if defined (ACE_HAS_THREADS) static int -single_thread_performance_test (int queue_type = 0) +single_thread_performance_test (void) { - ACE_UNUSED_ARG (queue_type); const char test_message[] = "ACE_Message_Queue_Ex Test Message"; const ACE_TCHAR *message = @@ -215,7 +214,7 @@ sender (void *arg) static int -performance_test (int queue_type = 0) +performance_test (void) { Queue_Wrapper queue_wrapper; const ACE_TCHAR *message = @@ -239,8 +238,7 @@ performance_test (int queue_type = 0) queue_wrapper.send_block_ = send_block; - if (queue_type == 0) - ACE_NEW_RETURN (queue_wrapper.q_, + ACE_NEW_RETURN (queue_wrapper.q_, SYNCH_QUEUE, -1); @@ -331,20 +329,8 @@ main (int argc, ACE_TCHAR *argv[]) if (status == 0) single_thread_performance_test (); -# if defined (VXWORKS) || (defined (ACE_WIN32) && (ACE_HAS_WINNT4 != 0)) - // Test ACE_Message_Queue_Vx. or ACE_Message_Queue_NT - if (status == 0) - single_thread_performance_test (1); -# endif /* VXWORKS */ - if (status == 0) performance_test (); - -# if defined (VXWORKS) || (defined (ACE_WIN32) && (ACE_HAS_WINNT4 != 0)) - // Test ACE_Message_Queue_Vx or ACE_Message_Queue_NT - if (status == 0) - performance_test (1); -# endif /* VXWORKS */ #endif /* ACE_HAS_THREADS */ if (status != 0) |