From 1e92c1984331cacea0b72d9d817f28b8dacdc218 Mon Sep 17 00:00:00 2001 From: brunsch Date: Wed, 4 Jun 1997 00:28:45 +0000 Subject: *** empty log message *** --- ace/Timer_Queue.cpp | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'ace/Timer_Queue.cpp') diff --git a/ace/Timer_Queue.cpp b/ace/Timer_Queue.cpp index 259f63dea82..dca4e89d916 100644 --- a/ace/Timer_Queue.cpp +++ b/ace/Timer_Queue.cpp @@ -1,4 +1,5 @@ -// $Id$ +#if !defined (ACE_TIMER_QUEUE_C) +#define ACE_TIMER_QUEUE_C #define ACE_BUILD_DLL @@ -7,13 +8,14 @@ #include "ace/Timer_Heap_T.h" #include "ace/Timer_List_T.h" #include "ace/Timer_Wheel_T.h" +#include "ace/Timer_Hash_T.h" #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ -int -ACE_Event_Handler_Handle_Timeout_Upcall::timeout (TIMER_QUEUE &timer_queue, - ACE_Event_Handler *handler, - const void *act, - const ACE_Time_Value &cur_time) +template int +ACE_Event_Handler_Handle_Timeout_Upcall::timeout (TIMER_QUEUE &timer_queue, + ACE_Event_Handler *handler, + const void *act, + const ACE_Time_Value &cur_time) { // Upcall to the s handle_timeout method if (handler->handle_timeout (cur_time, act) == -1) @@ -22,9 +24,9 @@ ACE_Event_Handler_Handle_Timeout_Upcall::timeout (TIMER_QUEUE &timer_queue, return 0; } -int -ACE_Event_Handler_Handle_Timeout_Upcall::cancellation (TIMER_QUEUE &timer_queue, - ACE_Event_Handler *handler) +template int +ACE_Event_Handler_Handle_Timeout_Upcall::cancellation (TIMER_QUEUE &timer_queue, + ACE_Event_Handler *handler) { ACE_UNUSED_ARG (timer_queue); @@ -34,6 +36,21 @@ ACE_Event_Handler_Handle_Timeout_Upcall::cancellation (TIMER_QUEUE &timer_queue, return 0; } +template int +ACE_Event_Handler_Handle_Timeout_Upcall::deletion (TIMER_QUEUE &timer_queue, + ACE_Event_Handler *handler, + const void *arg) +{ + ACE_UNUSED_ARG (timer_queue); + ACE_UNUSED_ARG (handler); + ACE_UNUSED_ARG (arg); + + // Does nothing + + return 0; +} + + #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_Unbounded_Set *>; template class ACE_Node *>; @@ -47,4 +64,8 @@ template class ACE_Timer_Queue_T; template class ACE_Timer_Wheel_T; template class ACE_Timer_Wheel_Iterator_T; +template class ACE_Timer_Hash_T; +template class ACE_Timer_Hash_Iterator_T; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ + +#endif /* ACE_TIMER_QUEUE_C */ -- cgit v1.2.1