summaryrefslogtreecommitdiff
path: root/tests/Message_Queue_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-25 02:42:39 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-25 02:42:39 +0000
commitf18f111b99ec81419c6d4828306701d6a4fba8f0 (patch)
tree0a74e1986a58b51571604b73c3a52bc5d0b5f337 /tests/Message_Queue_Test.cpp
parentae105533e765fd33ae81435dae6aefa4c4b0db3a (diff)
downloadATCD-f18f111b99ec81419c6d4828306701d6a4fba8f0.tar.gz
rearranged declarations so that it will build without ACE_HAS_THREADS
Diffstat (limited to 'tests/Message_Queue_Test.cpp')
-rw-r--r--tests/Message_Queue_Test.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp
index 4b912856990..b4089e68472 100644
--- a/tests/Message_Queue_Test.cpp
+++ b/tests/Message_Queue_Test.cpp
@@ -41,6 +41,15 @@ typedef ACE_Message_Queue<ACE_NULL_SYNCH> QUEUE;
typedef ACE_Message_Queue_Iterator<ACE_NULL_SYNCH> ITERATOR;
typedef ACE_Message_Queue_Reverse_Iterator<ACE_NULL_SYNCH> REVERSE_ITERATOR;
+const int MAX_MESSAGES = 10000;
+const int MAX_MESSAGE_SIZE = 32;
+const ASYS_TCHAR test_message[] = "ACE_Message_Queue Test Message";
+
+int messages = MAX_MESSAGES;
+
+// Dynamically allocate to avoid a static.
+static ACE_High_Res_Timer *timer = 0;
+
#if defined (ACE_HAS_THREADS)
typedef ACE_Message_Queue<ACE_SYNCH> SYNCH_QUEUE;
@@ -70,14 +79,6 @@ struct Queue_Wrapper
// Default constructor.
};
-const int MAX_MESSAGES = 10000;
-const int MAX_MESSAGE_SIZE = 32;
-const ASYS_TCHAR test_message[] = "ACE_Message_Queue Test Message";
-
-int messages = MAX_MESSAGES;
-
-// Dynamically allocate to avoid a static.
-static ACE_High_Res_Timer *timer = 0;
#endif /* ACE_HAS_THREADS */
#if !defined (VXWORKS)