Realistic 3D camera system
3D camera system components
event.hpp
Go to the documentation of this file.
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 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if !defined(ASIO_HAS_THREADS)
22 #elif defined(ASIO_WINDOWS)
23 # include "asio/detail/win_event.hpp"
24 #elif defined(ASIO_HAS_PTHREADS)
26 #elif defined(ASIO_HAS_STD_MUTEX_AND_CONDVAR)
27 # include "asio/detail/std_event.hpp"
28 #else
29 # error Only Windows, POSIX and std::condition_variable are supported!
30 #endif
31 
32 namespace asio {
33 namespace detail {
34 
35 #if !defined(ASIO_HAS_THREADS)
36 typedef null_event event;
37 #elif defined(ASIO_WINDOWS)
38 typedef win_event event;
39 #elif defined(ASIO_HAS_PTHREADS)
40 typedef posix_event event;
41 #elif defined(ASIO_HAS_STD_MUTEX_AND_CONDVAR)
42 typedef std_event event;
43 #endif
44 
45 } // namespace detail
46 } // namespace asio
47 
48 #endif // ASIO_DETAIL_EVENT_HPP
null_event event
Definition: event.hpp:36