diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-07-31 00:17:06 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-07-31 00:17:06 +0000 |
commit | 5859106c2fac24bcb1cec221f7edc4a7122643e9 (patch) | |
tree | e26c44f47c956101893b9577a94829b47499690f /examples/Timer_Queue | |
parent | 725982c6dca327297f9a32d2c63eb519be312d5f (diff) | |
download | ATCD-5859106c2fac24bcb1cec221f7edc4a7122643e9.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/Timer_Queue')
-rw-r--r-- | examples/Timer_Queue/Thread_Timer_Queue_Test.cpp | 8 | ||||
-rw-r--r-- | examples/Timer_Queue/Thread_Timer_Queue_Test.h | 22 |
2 files changed, 16 insertions, 14 deletions
diff --git a/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp b/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp index e62107b7e78..d5f56e2d461 100644 --- a/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp +++ b/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp @@ -44,7 +44,7 @@ Handler::set_id (int id) int Handler::handle_timeout (const ACE_Time_Value ¤t_time, - const void *) + const void *) { ACE_Time_Value delay = current_time - this->expires_; @@ -80,13 +80,15 @@ Input_Task::Input_Task (Thread_Timer_Queue *queue, { } -// Svc method is called from the thread library to read input from the user. +// Svc method is called from the thread library to read input from the +// user. int Input_Task::svc (void) { for (;;) - // call back to the driver's implementation on how to read and parse input. + // call back to the driver's implementation on how to read and + // parse input. if (this->driver_.get_next_request () == -1) break; diff --git a/examples/Timer_Queue/Thread_Timer_Queue_Test.h b/examples/Timer_Queue/Thread_Timer_Queue_Test.h index e6c8c3663f8..fa4c424ea79 100644 --- a/examples/Timer_Queue/Thread_Timer_Queue_Test.h +++ b/examples/Timer_Queue/Thread_Timer_Queue_Test.h @@ -12,7 +12,7 @@ // // = DESCRIPTION // This code exercises the <ACE_Thread_Timer_Queue_Adapter> using -// an <ACE_Timer_Heap_T> +// an <ACE_Timer_Heap_T>. // // = AUTHORS // Carlos O'Ryan <coryan@cs.wustl.edu> and @@ -43,10 +43,11 @@ typedef ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, typedef ACE_Thread_Timer_Queue_Adapter<Timer_Heap> Thread_Timer_Queue; -// Forward declaration +// Forward declaration. class Thread_Timer_Queue_Test_Driver; class Input_Task : public ACE_Task_Base +{ // = TITLE // Read user actions on the Timer_Queue from stdin. // @@ -54,7 +55,6 @@ class Input_Task : public ACE_Task_Base // This class reads user input from stdin; those commands permit // the control of a Timer_Queue, which is dispatched by another // thread. -{ public: typedef int (Input_Task::*ACTION) (void *); @@ -88,21 +88,21 @@ private: const int usecs_; // How many micro seconds are in a second. - Timer_Queue_Test_Driver<Thread_Timer_Queue, Input_Task, Input_Task::ACTION> &driver_; - // The thread timer queue test driver + Thread_Timer_Queue_Test_Driver &driver_; + // The thread timer queue test driver. }; class Thread_Timer_Queue_Test_Driver : public Timer_Queue_Test_Driver <Thread_Timer_Queue, Input_Task, Input_Task::ACTION> +{ // = TITLE - // Implements an example application that exercises <Thread_Timer_Queue> - // timer queue. + // Implements an example application that exercises + // <Thread_Timer_Queue> timer queue. // // = DESCRIPTION // This class implements a simple test driver for the // <Thread_Timer_Queue>. The <display_menu> hook method is // called from the base class to print a menu specific to the // thread implementation of the timer queue. -{ public: Thread_Timer_Queue_Test_Driver (void); ~Thread_Timer_Queue_Test_Driver (void); @@ -117,13 +117,13 @@ private: }; class Handler : public ACE_Event_Handler +{ // = TITLE // Event handler for the timer queue timeout events. // // = DESCRIPTION - // The <handle_timeout> hook method prints out the current - // time, prints the time when this timer expired and deletes "this". -{ + // The <handle_timeout> hook method prints out the current time, + // prints the time when this timer expired and deletes "this". public: Handler (const ACE_Time_Value &expiration_time); ~Handler (void); |