Remote Call Framework 3.3
AsioDeadlineTimer.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_ASIODEADLINETIMER_HPP
19 #define INCLUDE_RCF_ASIODEADLINETIMER_HPP
20 
21 #include <RCF/Asio.hpp>
22 
23 #include <RCF/external/asio/asio/steady_timer.hpp>
24 
25 namespace RCF {
26 
27  typedef ASIO_NS::steady_timer AsioDeadlineTimer;
28  typedef std::shared_ptr<AsioDeadlineTimer> AsioDeadlineTimerPtr;
29 
30  // Using a wrapper for deadline_timer so we can do forward declarations.
31  class AsioTimer
32  {
33  public:
34  AsioTimer(AsioIoService &ioService) :
35  mImpl(ioService)
36  {}
37 
38  ASIO_NS::steady_timer mImpl;
39  };
40 
41 } // namespace RCF
42 
43 #endif // ! INCLUDE_RCF_ASIODEADLINETIMER_HPP
Definition: AmiIoHandler.hpp:23