Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / library / BH / include / boost / asio / detail / null_reactor.hpp @ 2486

History | View | Annotate | Download (1.4 kB)

1
//
2
// detail/null_reactor.hpp
3
// ~~~~~~~~~~~~~~~~~~~~~~~
4
//
5
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
//
7
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
//
10

    
11
#ifndef BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
12
#define BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
13

    
14
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15
# pragma once
16
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17

    
18
#include <boost/asio/detail/config.hpp>
19

    
20
#if defined(BOOST_ASIO_WINDOWS_RUNTIME)
21

    
22
#include <boost/asio/io_service.hpp>
23

    
24
#include <boost/asio/detail/push_options.hpp>
25

    
26
namespace boost {
27
namespace asio {
28
namespace detail {
29

    
30
class null_reactor
31
  : public boost::asio::detail::service_base<null_reactor>
32
{
33
public:
34
  // Constructor.
35
  null_reactor(boost::asio::io_service& io_service)
36
    : boost::asio::detail::service_base<null_reactor>(io_service)
37
  {
38
  }
39

    
40
  // Destructor.
41
  ~null_reactor()
42
  {
43
  }
44

    
45
  // Destroy all user-defined handler objects owned by the service.
46
  void shutdown_service()
47
  {
48
  }
49

    
50
  // No-op because should never be called.
51
  void run(bool /*block*/, op_queue<operation>& /*ops*/)
52
  {
53
  }
54

    
55
  // No-op.
56
  void interrupt()
57
  {
58
  }
59
};
60

    
61
} // namespace detail
62
} // namespace asio
63
} // namespace boost
64

    
65
#include <boost/asio/detail/pop_options.hpp>
66

    
67
#endif // defined(BOOST_ASIO_WINDOWS_RUNTIME)
68

    
69
#endif // BOOST_ASIO_DETAIL_NULL_REACTOR_HPP