• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // detail/event.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_EVENT_HPP
12 #define ASIO_DETAIL_EVENT_HPP
13 
14 
15 #include "asio/detail/config.hpp"
16 
17 #if   defined(ASIO_HAS_PTHREADS)
18 # include "asio/detail/posix_event.hpp"
19 #else
20 # include "asio/detail/std_event.hpp"
21 #endif
22 
23 namespace asio {
24 namespace detail {
25 
26 #if   defined(ASIO_HAS_PTHREADS)
27 typedef posix_event event;
28 #else
29 typedef std_event event;
30 #endif
31 
32 } // namespace detail
33 } // namespace asio
34 
35 #endif // ASIO_DETAIL_EVENT_HPP
36