Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / Timer.cpp
blob6dafd93a43a8a72b3ed149c4872941877a9ff6dd
1 #ifndef JAWS_BUILD_DLL
2 #define JAWS_BUILD_DLL
3 #endif
5 #include "jaws3/Timer.h"
6 #include "jaws3/Task_Timer.h"
8 JAWS_Timer::JAWS_Timer (JAWS_Timer_Impl *impl)
9 : impl_ (impl)
11 // TODO: Change this to use JAWS_Options after we have more than
12 // one way of handling timers.
13 if (this->impl_ == 0)
14 this->impl_ = JAWS_Task_Timer::instance ();
17 void
18 JAWS_Timer::schedule_timer ( long *timer_id
19 , const ACE_Time_Value &delta
20 , JAWS_Event_Completer *completer
21 , void *act
24 this->impl_->schedule_timer (timer_id, delta, completer, act);
27 void
28 JAWS_Timer::schedule_absolute_timer ( long *timer_id
29 , const ACE_Time_Value &tv
30 , JAWS_Event_Completer *completer
31 , void *act
34 this->impl_->schedule_absolute_timer (timer_id, tv, completer, act);
37 void
38 JAWS_Timer::schedule_interval_timer ( long *timer_id
39 , const ACE_Time_Value &interval
40 , JAWS_Event_Completer *completer
41 , void *act
44 this->impl_->schedule_interval_timer (timer_id, interval, completer, act);
47 void
48 JAWS_Timer::cancel_timer (long timer_id)
50 this->impl_->cancel_timer (timer_id);