summaryrefslogtreecommitdiff
path: root/examples/Timer_Queue
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-19 22:45:59 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-19 22:45:59 +0000
commitc5e03363fa27fa2bcd72874b48d85c15b5192016 (patch)
tree67af84b3352e91eecdfdc67fb0e870e90eb42e43 /examples/Timer_Queue
parentb8412ce34e5f7a3d14a5b6f145321a2ff5f38642 (diff)
downloadATCD-c5e03363fa27fa2bcd72874b48d85c15b5192016.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Timer_Queue')
-rw-r--r--examples/Timer_Queue/Async_Timer_Queue_Test.cpp17
-rw-r--r--examples/Timer_Queue/Async_Timer_Queue_Test.h21
-rw-r--r--examples/Timer_Queue/Driver.h23
-rw-r--r--examples/Timer_Queue/Reactor_Timer_Queue_Test.h20
-rw-r--r--examples/Timer_Queue/Thread_Timer_Queue_Test.h22
-rw-r--r--examples/Timer_Queue/main_async.cpp7
-rw-r--r--examples/Timer_Queue/main_reactor.cpp5
-rw-r--r--examples/Timer_Queue/main_thread.cpp4
8 files changed, 94 insertions, 25 deletions
diff --git a/examples/Timer_Queue/Async_Timer_Queue_Test.cpp b/examples/Timer_Queue/Async_Timer_Queue_Test.cpp
index af1deaf0c90..2d09a63128b 100644
--- a/examples/Timer_Queue/Async_Timer_Queue_Test.cpp
+++ b/examples/Timer_Queue/Async_Timer_Queue_Test.cpp
@@ -1,22 +1,5 @@
// $Id$
-// ============================================================================
-//
-// = LIBRARY
-// examples
-//
-// = FILENAME
-// Async_Timer_Queue_Test.cpp
-//
-// = DESCRIPTION
-// This test exercises the <ACE_Asynch_Timer_Queue_Adapter>
-// using an <ACE_Timer_Heap>.
-//
-// = AUTHORS
-// Douglas C. Schmidt
-//
-// ============================================================================
-
#include "ace/Signal.h"
#include "ace/Timer_Heap.h"
#include "ace/Timer_Queue_Adapters.h"
diff --git a/examples/Timer_Queue/Async_Timer_Queue_Test.h b/examples/Timer_Queue/Async_Timer_Queue_Test.h
index b4805403b0e..c09c45d4f4a 100644
--- a/examples/Timer_Queue/Async_Timer_Queue_Test.h
+++ b/examples/Timer_Queue/Async_Timer_Queue_Test.h
@@ -1,3 +1,24 @@
+/* -*- C++ -*- */
+
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// examples
+//
+// = FILENAME
+// Async_Timer_Queue_Test.h
+//
+// = DESCRIPTION
+// This test exercises the <ACE_Asynch_Timer_Queue_Adapter>
+// using an <ACE_Timer_Heap>.
+//
+// = AUTHORS
+// Douglas C. Schmidt
+//
+// ============================================================================
+
#if !defined (_ASYNC_TIMER_QUEUE_TEST_H_)
#define _ASYNC_TIMER_QUEUE_TEST_H_
diff --git a/examples/Timer_Queue/Driver.h b/examples/Timer_Queue/Driver.h
index f06c038149d..2e669a8b12b 100644
--- a/examples/Timer_Queue/Driver.h
+++ b/examples/Timer_Queue/Driver.h
@@ -1,3 +1,23 @@
+/* -*- C++ -*- */
+
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// examples
+//
+// = FILENAME
+// Driver.h
+//
+// = DESCRIPTION
+// // @@ Please comment me
+//
+// = AUTHORS
+// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
+//
+// ============================================================================
+
#if !defined (_DRIVER_H_)
#define _DRIVER_H_
@@ -33,6 +53,7 @@ public:
{
return (receiver_.*action_) (arg);
}
+
private:
Receiver &receiver_;
Action action_;
@@ -66,4 +87,4 @@ protected:
};
-#endif
+#endif /* _DRIVER_H_ */
diff --git a/examples/Timer_Queue/Reactor_Timer_Queue_Test.h b/examples/Timer_Queue/Reactor_Timer_Queue_Test.h
index d3c3a8d828c..a3960c169c9 100644
--- a/examples/Timer_Queue/Reactor_Timer_Queue_Test.h
+++ b/examples/Timer_Queue/Reactor_Timer_Queue_Test.h
@@ -1,3 +1,23 @@
+/* -*- C++ -*- */
+
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// examples
+//
+// = FILENAME
+// Async_Timer_Queue_Test.h
+//
+// = DESCRIPTION
+// // @@ Please comment me
+//
+// = AUTHORS
+// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
+//
+// ============================================================================
+
#if !defined (_REACTOR_TIMER_QUEUE_TEST_H_)
#define _REACTOR_TIMER_QUEUE_TEST_H_
diff --git a/examples/Timer_Queue/Thread_Timer_Queue_Test.h b/examples/Timer_Queue/Thread_Timer_Queue_Test.h
index 521940891ec..cc1280a011f 100644
--- a/examples/Timer_Queue/Thread_Timer_Queue_Test.h
+++ b/examples/Timer_Queue/Thread_Timer_Queue_Test.h
@@ -1,10 +1,30 @@
+/* -*- C++ -*- */
+
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// examples
+//
+// = FILENAME
+// Thread_Timer_Queue_Test.h
+//
+// = DESCRIPTION
+// // @@ Please comment me
+//
+// = AUTHORS
+// Carlos O'Ryan <coryan@cs.wustl.edu> and
+// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
+//
+// ============================================================================
+
#if !defined (_THREAD_TIMER_QUEUE_TEST_H_)
#define _THREAD_TIMER_QUEUE_TEST_H_
#include "ace/Task.h"
#include "ace/Timer_Heap_T.h"
#include "ace/Timer_Queue_Adapters.h"
-
#include "Driver.h"
// These typedefs ensure that we use the minimal amount of locking
diff --git a/examples/Timer_Queue/main_async.cpp b/examples/Timer_Queue/main_async.cpp
index 28af96ba0ee..7a23947ace6 100644
--- a/examples/Timer_Queue/main_async.cpp
+++ b/examples/Timer_Queue/main_async.cpp
@@ -1,3 +1,5 @@
+// $Id$
+
// ============================================================================
//
// = LIBRARY
@@ -16,8 +18,8 @@
// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
//
// ============================================================================
-#include <ace/Auto_Ptr.h>
+#include "ace/Auto_Ptr.h"
#include "Driver.h"
#include "Async_Timer_Queue_Test.h"
@@ -34,8 +36,7 @@ main (int, char *[])
ACE_NEW_RETURN (tqtd, Async_Timer_Queue_Test_Driver, -1);
driver = tqtd;
- driver->run_test () ;
- return 0 ;
+ return driver->run_test ();
}
diff --git a/examples/Timer_Queue/main_reactor.cpp b/examples/Timer_Queue/main_reactor.cpp
index 65c680cf4aa..000235a988c 100644
--- a/examples/Timer_Queue/main_reactor.cpp
+++ b/examples/Timer_Queue/main_reactor.cpp
@@ -1,3 +1,5 @@
+// $Id$
+
// ============================================================================
//
// = LIBRARY
@@ -16,12 +18,11 @@
// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
//
// ============================================================================
-#include <ace/Auto_Ptr.h>
+#include "ace/Auto_Ptr.h"
#include "Driver.h"
#include "Reactor_Timer_Queue_Test.h"
-
typedef Timer_Queue_Test_Driver <ACE_Timer_Heap, Input_Handler>
REACTOR_TIMER_QUEUE_TEST_DRIVER;
diff --git a/examples/Timer_Queue/main_thread.cpp b/examples/Timer_Queue/main_thread.cpp
index 98ccdac06dc..3b15fb8c178 100644
--- a/examples/Timer_Queue/main_thread.cpp
+++ b/examples/Timer_Queue/main_thread.cpp
@@ -1,3 +1,5 @@
+// $Id$
+
// ============================================================================
//
// = LIBRARY
@@ -16,8 +18,8 @@
// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
//
// ============================================================================
-#include <ace/Auto_Ptr.h>
+#include "ace/Auto_Ptr.h"
#include "Driver.h"
#include "Thread_Timer_Queue_Test.h"