summaryrefslogtreecommitdiff
path: root/ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp')
-rw-r--r--ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp48
1 files changed, 18 insertions, 30 deletions
diff --git a/ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp b/ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
index 714abed08e7..ba8b86d649d 100644
--- a/ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
+++ b/ACE/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
@@ -1,20 +1,17 @@
-// $Id$
-
-// ============================================================================
-// = LIBRARY
-// examples
-//
-// = FILENAME
-// Reactor_Timer_Queue_Test
-//
-// = DESCRIPTION
-// This example tests the timer queue mechanism of ACE_Reactor.
-//
-// = AUTHOR
-// Nanbor Wang <nw1@cs.wustl.edu> and
-// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
-//
-// ============================================================================
+
+//=============================================================================
+/**
+* @file Reactor_Timer_Queue_Test.cpp
+ *
+ * $Id$
+ *
+ * This example tests the timer queue mechanism of ACE_Reactor.
+ *
+ *
+ * @author Nanbor Wang <nw1@cs.wustl.edu> and Sergio Flores-Gaitan <sergio@cs.wustl.edu>
+ */
+//=============================================================================
+
#include "ace/OS_NS_sys_time.h"
#include "ace/Thread_Manager.h"
@@ -25,7 +22,7 @@
#include "Driver.h"
#include "Reactor_Timer_Queue_Test.h"
-ACE_RCSID(Timer_Queue, Reactor_Timer_Queue_Test, "$Id$")
+
void
Reactor_Timer_Handler::set_timer_id (long tid)
@@ -34,12 +31,9 @@ Reactor_Timer_Handler::set_timer_id (long tid)
}
int
-Reactor_Timer_Handler::handle_timeout (const ACE_Time_Value &tv,
+Reactor_Timer_Handler::handle_timeout (const ACE_Time_Value &,
const void *)
{
- // Macro to avoid "warning: unused parameter" type warning.
- ACE_UNUSED_ARG (tv);
-
ACE_Time_Value txv = ACE_OS::gettimeofday ();
ACE_DEBUG ((LM_DEBUG,
"\nTimer #%d fired at %d.%06d (%T)!\n",
@@ -105,11 +99,8 @@ Input_Handler::cancel_timer (void *argument)
}
int
-Input_Handler::shutdown_timer (void *argument)
+Input_Handler::shutdown_timer (void *)
{
- // Macro to avoid "warning: unused parameter" type warning.
- ACE_UNUSED_ARG (argument);
-
this->done_ = 1;
ACE_DEBUG ((LM_DEBUG,
"Shutting down event loop\n"));
@@ -117,11 +108,8 @@ Input_Handler::shutdown_timer (void *argument)
}
int
-Input_Handler::list_timer (void *argument)
+Input_Handler::list_timer (void *)
{
- // Macro to avoid "warning: unused parameter" type warning.
- ACE_UNUSED_ARG (argument);
-
ACE_Timer_Queue_Iterator &iter = this->tq_->iter ();
ACE_DEBUG ((LM_DEBUG,
"\n\nTimers in queue:\n"));