Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_Timeout.h
blob6f56eef2d3f0d93f411df265c03bab109f1aefc6
1 // -*- C++ -*-
2 /* Handles timeouts. */
4 #ifndef _HANDLE_TIMEOUT_H
5 #define _HANDLE_TIMEOUT_H
7 #include "ace/Service_Config.h"
8 #include "ace/Reactor.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #include "ace/Service_Types.h"
15 #include "ace/Log_Msg.h"
16 #include "ace/svc_export.h"
18 class ACE_Svc_Export Handle_Timeout : public ACE_Service_Object
20 public:
21 Handle_Timeout ();
22 virtual int init (int argc, ACE_TCHAR *argv[]);
23 virtual int info (ACE_TCHAR **, size_t) const;
24 virtual int fini ();
26 private:
27 virtual ACE_HANDLE get_handle () const;
28 virtual int handle_timeout (const ACE_Time_Value &tv, const void *arg);
30 int count;
33 extern ACE_Service_Object_Type t1;
35 #if defined (__ACE_INLINE__)
36 #define ACE_INLINE inline
37 #include "Handle_Timeout.inl"
38 #else
39 #define ACE_INLINE
40 #endif /* __ACE_INLINE__ */
42 #endif /* _HANDLE_TIMEOUT_H */