Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / Timer_Helpers.h
blob5a346716afb49069ca4d73305a1eb3eb3a1be47f
1 /* -*- c+ -*- */
2 #ifndef JAWS_TIMER_HELPERS_H
3 #define JAWS_TIMER_HELPERS_H
5 #include "ace/Singleton.h"
6 #include "ace/Event_Handler.h"
8 #include "jaws3/Timer.h"
9 #include "jaws3/Event_Completer.h"
10 #include "jaws3/Event_Result.h"
12 class JAWS_Timer_EH : public ACE_Event_Handler
14 public:
15 JAWS_Timer_EH ( JAWS_Event_Completer *completer
16 , void *act = 0
17 , int interval = 0
19 : completer_ (completer)
20 , act_ (act)
21 , interval_ (interval)
22 , expired_ (0)
26 int handle_timeout (const ACE_Time_Value &tv, const void *act);
27 // Called when timer expires.
29 int handle_close (ACE_HANDLE h, ACE_Reactor_Mask m);
30 // Called directly when timer is canceled.
32 private:
33 JAWS_Event_Completer *completer_;
34 void *act_;
35 const int interval_;
36 int expired_;
39 #endif /* JAWS_TIMER_HELPERS_H */