2 #if !defined(PTIMER_DISPATCHER_H)
3 #define PTIMER_DISPATCHER_H
5 #include "ace/Singleton.h"
6 #include "ace/Synch.h" // needed for ACE_Event
11 class PTimer_Dispatcher
14 void wait_for_event ();
16 long schedule (PCB
*cb
,
18 const ACE_Time_Value
&abs_time
,
19 const ACE_Time_Value
&interval
);
22 int dont_call_handle_close
= 1);
24 int reset_interval (long timer_id
,
25 const ACE_Time_Value
&interval
);
27 void set (PTimerQueue
*timer_queue
);
30 PTimerQueue
*timer_queue_
;
34 typedef ACE_Singleton
<PTimer_Dispatcher
, ACE_Null_Mutex
> PTimer
;
36 #endif /*TIMER_DISPATCHER_H*/