1//
2// detail/wait_op.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 ASIO_DETAIL_WAIT_OP_HPP
12#define ASIO_DETAIL_WAIT_OP_HPP
13
14
15#include "asio/detail/config.hpp"
16#include "asio/detail/operation.hpp"
17
18#include "asio/detail/push_options.hpp"
19
20namespace asio {
21namespace detail {
22
23class wait_op
24  : public operation
25{
26public:
27  // The error code to be passed to the completion handler.
28  asio::error_code ec_;
29
30protected:
31  wait_op(func_type func)
32    : operation(func)
33  {
34  }
35};
36
37} // namespace detail
38} // namespace asio
39
40#include "asio/detail/pop_options.hpp"
41
42#endif // ASIO_DETAIL_WAIT_OP_HPP
43