Remote Call Framework 3.1
AsioDeadlineTimer.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2019, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 3.1
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_ASIODEADLINETIMER_HPP
20 #define INCLUDE_RCF_ASIODEADLINETIMER_HPP
21 
22 #include <RCF/Asio.hpp>
23 
24 #include <RCF/external/asio/asio/system_timer.hpp>
25 
26 namespace RCF {
27 
28  //typedef ASIO_NS::deadline_timer AsioDeadlineTimer;
29  typedef ASIO_NS::system_timer AsioDeadlineTimer;
30  typedef std::shared_ptr<AsioDeadlineTimer> AsioDeadlineTimerPtr;
31 
32  // Using a wrapper for deadline_timer so we can do forward declarations.
33  class AsioTimer
34  {
35  public:
36  AsioTimer(AsioIoService &ioService) :
37  mImpl(ioService)
38  {}
39 
40  ASIO_NS::system_timer mImpl;
41  };
42 
43 } // namespace RCF
44 
45 #endif // ! INCLUDE_RCF_ASIODEADLINETIMER_HPP
Definition: AmiIoHandler.hpp:24