summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-06 01:14:18 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-06 01:14:18 +0000
commite03e2e91bcd629d3386ea1059a1a893d976dd4e6 (patch)
tree530cecb99e4c89e016a84d14b666f60059f53cb1 /ace/Timer_Queue.h
parent385f921ff545baca5e95604326344d0584808ebd (diff)
downloadATCD-e03e2e91bcd629d3386ea1059a1a893d976dd4e6.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Timer_Queue.h')
-rw-r--r--ace/Timer_Queue.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/ace/Timer_Queue.h b/ace/Timer_Queue.h
index d67b643df92..42bf2fb5248 100644
--- a/ace/Timer_Queue.h
+++ b/ace/Timer_Queue.h
@@ -17,6 +17,7 @@
#if !defined (ACE_TIMER_QUEUE_H)
#define ACE_TIMER_QUEUE_H
+#include "ace/Synch.h"
#include "ace/Timer_Queue_T.h"
class ACE_Export ACE_Event_Handler_Handle_Timeout_Upcall
@@ -28,17 +29,19 @@ class ACE_Export ACE_Event_Handler_Handle_Timeout_Upcall
// Queue to call <handle_timeout> on ACE_Event_Handlers.
{
public:
- typedef ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall>
+ typedef ACE_Timer_Queue_T<ACE_Event_Handler *,
+ ACE_Event_Handler_Handle_Timeout_Upcall,
+ ACE_SYNCH_RECURSIVE_MUTEX>
TIMER_QUEUE;
- int operator () (TIMER_QUEUE &timer_queue,
- ACE_Event_Handler *handler,
- const void *arg,
- const ACE_Time_Value &cur_time);
+ int timeout (TIMER_QUEUE &timer_queue,
+ ACE_Event_Handler *handler,
+ const void *arg,
+ const ACE_Time_Value &cur_time);
// This method is called when the timer expires
- int operator () (TIMER_QUEUE &timer_queue,
- ACE_Event_Handler *handler);
+ int cancellation (TIMER_QUEUE &timer_queue,
+ ACE_Event_Handler *handler);
// This method is called when the timer is canceled
};
@@ -46,15 +49,18 @@ public:
// compatibility.
typedef ACE_Timer_Node_T<ACE_Event_Handler *,
- ACE_Event_Handler_Handle_Timeout_Upcall>
+ ACE_Event_Handler_Handle_Timeout_Upcall,
+ ACE_SYNCH_RECURSIVE_MUTEX>
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_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_Timer_Queue_Iterator;
#endif /* ACE_TIMER_QUEUE_H */