summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue.h
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-04 00:28:45 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-04 00:28:45 +0000
commit1e92c1984331cacea0b72d9d817f28b8dacdc218 (patch)
treedf56cae7425595d3da052496955161fadc6bc852 /ace/Timer_Queue.h
parent35d1135d0091ec71142a95fdbc7c3a3bb741ebec (diff)
downloadATCD-1e92c1984331cacea0b72d9d817f28b8dacdc218.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Timer_Queue.h')
-rw-r--r--ace/Timer_Queue.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/ace/Timer_Queue.h b/ace/Timer_Queue.h
index 42bf2fb5248..a0de5dbd5dc 100644
--- a/ace/Timer_Queue.h
+++ b/ace/Timer_Queue.h
@@ -1,5 +1,4 @@
/* -*- C++ -*- */
-// $Id$
// ============================================================================
//
@@ -20,7 +19,8 @@
#include "ace/Synch.h"
#include "ace/Timer_Queue_T.h"
-class ACE_Export ACE_Event_Handler_Handle_Timeout_Upcall
+template <class LOCK>
+class ACE_Event_Handler_Handle_Timeout_Upcall
// = TITLE
// Functor for Timer_Queues.
//
@@ -30,8 +30,8 @@ class ACE_Export ACE_Event_Handler_Handle_Timeout_Upcall
{
public:
typedef ACE_Timer_Queue_T<ACE_Event_Handler *,
- ACE_Event_Handler_Handle_Timeout_Upcall,
- ACE_SYNCH_RECURSIVE_MUTEX>
+ ACE_Event_Handler_Handle_Timeout_Upcall<LOCK>,
+ LOCK>
TIMER_QUEUE;
int timeout (TIMER_QUEUE &timer_queue,
@@ -43,24 +43,37 @@ public:
int cancellation (TIMER_QUEUE &timer_queue,
ACE_Event_Handler *handler);
// This method is called when the timer is canceled
+
+ int deletion (TIMER_QUEUE &timer_queue,
+ ACE_Event_Handler *handler,
+ const void *arg);
+ // This method is called when the timer queue is destroyed and
+ // the timer is still contained in it
};
// The following typedef are here for ease of use and backward
// compatibility.
-typedef ACE_Timer_Node_T<ACE_Event_Handler *,
- ACE_Event_Handler_Handle_Timeout_Upcall,
- ACE_SYNCH_RECURSIVE_MUTEX>
+typedef ACE_Timer_Node_T<ACE_Event_Handler *>
ACE_Timer_Node;
typedef ACE_Timer_Queue_T<ACE_Event_Handler *,
- ACE_Event_Handler_Handle_Timeout_Upcall,
+ ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Queue;
typedef ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *,
- ACE_Event_Handler_Handle_Timeout_Upcall,
+ ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Queue_Iterator;
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "ace/Timer_Queue.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("Timer_Queue.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
#endif /* ACE_TIMER_QUEUE_H */