Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / Timer_Helpers.cpp
blob9d46611044dac09d88a319c40942200e871af921
1 #ifndef JAWS_BUILD_DLL
2 #define JAWS_BUILD_DLL
3 #endif
5 #include "jaws3/Timer_Helpers.h"
7 int
8 JAWS_Timer_EH::handle_timeout (const ACE_Time_Value &, const void *)
10 JAWS_Event_Result timer_result ( 0
11 , JAWS_Event_Result::JE_OK
12 , JAWS_Event_Result::JE_TIMER_OK
15 if (this->completer_)
16 this->completer_->timer_complete (timer_result, this->act_);
18 if (this->interval_)
19 return 0;
21 this->expired_ = 1;
22 return -1;
25 int
26 JAWS_Timer_EH::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
28 JAWS_Event_Result timer_result ( 0
29 , JAWS_Event_Result::JE_CANCEL
30 , JAWS_Event_Result::JE_TIMER_CANCEL
33 if (! this->expired_ && this->completer_)
34 this->completer_->timer_complete (timer_result, this->act_);
36 return 0;