diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-04 07:22:45 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-04 07:22:45 +0000 |
commit | 014e10873d6fb57af873aade10484c486dab8c0e (patch) | |
tree | 74ddcf91392474bb205b61787bbedd17bd6d057b /ace/Timer_Queue_T.h | |
parent | 1e92c1984331cacea0b72d9d817f28b8dacdc218 (diff) | |
download | ATCD-014e10873d6fb57af873aade10484c486dab8c0e.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Timer_Queue_T.h')
-rw-r--r-- | ace/Timer_Queue_T.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ace/Timer_Queue_T.h b/ace/Timer_Queue_T.h index a2f3d978cd2..c3dc93f1a58 100644 --- a/ace/Timer_Queue_T.h +++ b/ace/Timer_Queue_T.h @@ -309,6 +309,38 @@ private: void operator= (const ACE_Timer_Queue_T<TYPE, FUNCTOR, LOCK> &); }; +template <class LOCK> +class ACE_Event_Handler_Handle_Timeout_Upcall + // = TITLE + // Functor for Timer_Queues. + // + // = DESCRIPTION + // This class implements the functor required by the Timer + // Queue to call <handle_timeout> on ACE_Event_Handlers. +{ +public: + typedef ACE_Timer_Queue_T<ACE_Event_Handler *, + ACE_Event_Handler_Handle_Timeout_Upcall<LOCK>, + LOCK> + TIMER_QUEUE; + + 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 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 +}; + #if defined (__ACE_INLINE__) #include "ace/Timer_Queue_T.i" #endif /* __ACE_INLINE__ */ |