Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_1270_Regression / Server_Timer.h
blob6d3194ff4bb443f2d4b348da7f9f66a3fb445e02
1 /**
2 * @file Server_Timer.h
4 * @author Carlos O'Ryan <coryan@atdesk.com>
5 */
7 #ifndef Server_Timer__h_
8 #define Server_Timer__h_
9 #include /**/ "ace/pre.h"
11 #include "TestC.h"
12 #include "ace/Event_Handler.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 class Server_Timer : public ACE_Event_Handler
20 public:
21 /// Constructor
22 Server_Timer (Test::Echo_ptr echo, ACE_Reactor * reactor);
24 void activate (void);
26 /// Thread entry point
27 int handle_timeout(ACE_Time_Value const & tv, void const *);
29 private:
30 /// Reference to the test interface
31 Test::Echo_var echo_;
34 #include /**/ "ace/post.h"
35 #endif /* Server_Timer__h_ */