diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tests/Bug_1361_Regression/Server_Timer.h | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tests/Bug_1361_Regression/Server_Timer.h')
-rw-r--r-- | TAO/tests/Bug_1361_Regression/Server_Timer.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/TAO/tests/Bug_1361_Regression/Server_Timer.h b/TAO/tests/Bug_1361_Regression/Server_Timer.h new file mode 100644 index 00000000000..55d51862464 --- /dev/null +++ b/TAO/tests/Bug_1361_Regression/Server_Timer.h @@ -0,0 +1,41 @@ +/** + * @file Server_Timer.h + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@atdesk.com> + * + */ + +#ifndef Server_Timer__h_ +#define Server_Timer__h_ +#include /**/ "ace/pre.h" + +#include "TestC.h" +#include "ace/Event_Handler.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class Server_Timer : public ACE_Event_Handler +{ +public: + /// Constructor + Server_Timer (Test::Echo_ptr echo, ACE_Reactor * reactor); + + void activate (void); + + /// Thread entry point + int handle_timeout(ACE_Time_Value const & tv, void const *); + int handle_close (ACE_HANDLE, ACE_Reactor_Mask); + +private: + /// Reference to the test interface + Test::Echo_var echo_; + + int refcnt_; +}; + +#include /**/ "ace/post.h" +#endif /* Server_Timer__h_ */ |