From c5e03363fa27fa2bcd72874b48d85c15b5192016 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sun, 19 Oct 1997 22:45:59 +0000 Subject: *** empty log message *** --- examples/Timer_Queue/Async_Timer_Queue_Test.cpp | 17 ----------------- examples/Timer_Queue/Async_Timer_Queue_Test.h | 21 +++++++++++++++++++++ examples/Timer_Queue/Driver.h | 23 ++++++++++++++++++++++- examples/Timer_Queue/Reactor_Timer_Queue_Test.h | 20 ++++++++++++++++++++ examples/Timer_Queue/Thread_Timer_Queue_Test.h | 22 +++++++++++++++++++++- examples/Timer_Queue/main_async.cpp | 7 ++++--- examples/Timer_Queue/main_reactor.cpp | 5 +++-- examples/Timer_Queue/main_thread.cpp | 4 +++- 8 files changed, 94 insertions(+), 25 deletions(-) (limited to 'examples') 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 -// using an . -// -// = 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 +// using an . +// +// = 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 +// +// ============================================================================ + #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 +// +// ============================================================================ + #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 and +// Sergio Flores-Gaitan +// +// ============================================================================ + #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 // // ============================================================================ -#include +#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 // // ============================================================================ -#include +#include "ace/Auto_Ptr.h" #include "Driver.h" #include "Reactor_Timer_Queue_Test.h" - typedef Timer_Queue_Test_Driver 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 // // ============================================================================ -#include +#include "ace/Auto_Ptr.h" #include "Driver.h" #include "Thread_Timer_Queue_Test.h" -- cgit v1.2.1