5 #include "jaws3/Timer.h"
6 #include "jaws3/Task_Timer.h"
8 JAWS_Timer::JAWS_Timer (JAWS_Timer_Impl
*impl
)
11 // TODO: Change this to use JAWS_Options after we have more than
12 // one way of handling timers.
14 this->impl_
= JAWS_Task_Timer::instance ();
18 JAWS_Timer::schedule_timer ( long *timer_id
19 , const ACE_Time_Value
&delta
20 , JAWS_Event_Completer
*completer
24 this->impl_
->schedule_timer (timer_id
, delta
, completer
, act
);
28 JAWS_Timer::schedule_absolute_timer ( long *timer_id
29 , const ACE_Time_Value
&tv
30 , JAWS_Event_Completer
*completer
34 this->impl_
->schedule_absolute_timer (timer_id
, tv
, completer
, act
);
38 JAWS_Timer::schedule_interval_timer ( long *timer_id
39 , const ACE_Time_Value
&interval
40 , JAWS_Event_Completer
*completer
44 this->impl_
->schedule_interval_timer (timer_id
, interval
, completer
, act
);
48 JAWS_Timer::cancel_timer (long timer_id
)
50 this->impl_
->cancel_timer (timer_id
);