Realistic 3D camera system
3D camera system components
fenced_block.hpp
Go to the documentation of this file.
1 //
2 // detail/fenced_block.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_FENCED_BLOCK_HPP
12 #define ASIO_DETAIL_FENCED_BLOCK_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) \
21  || defined(ASIO_DISABLE_FENCED_BLOCK)
23 #elif defined(__MACH__) && defined(__APPLE__)
25 #elif defined(__sun)
27 #elif defined(__GNUC__) && defined(__arm__) \
28  && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
30 #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
32 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
34 #elif defined(__GNUC__) \
35  && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
36  && !defined(__INTEL_COMPILER) && !defined(__ICL) \
37  && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
39 #elif defined(ASIO_WINDOWS) && !defined(UNDER_CE)
41 #else
43 #endif
44 
45 namespace asio {
46 namespace detail {
47 
48 #if !defined(ASIO_HAS_THREADS) \
49  || defined(ASIO_DISABLE_FENCED_BLOCK)
51 #elif defined(__MACH__) && defined(__APPLE__)
52 typedef macos_fenced_block fenced_block;
53 #elif defined(__sun)
54 typedef solaris_fenced_block fenced_block;
55 #elif defined(__GNUC__) && defined(__arm__) \
56  && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
57 typedef gcc_arm_fenced_block fenced_block;
58 #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
59 typedef gcc_hppa_fenced_block fenced_block;
60 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
61 typedef gcc_x86_fenced_block fenced_block;
62 #elif defined(__GNUC__) \
63  && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
64  && !defined(__INTEL_COMPILER) && !defined(__ICL) \
65  && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
66 typedef gcc_sync_fenced_block fenced_block;
67 #elif defined(ASIO_WINDOWS) && !defined(UNDER_CE)
68 typedef win_fenced_block fenced_block;
69 #else
71 #endif
72 
73 } // namespace detail
74 } // namespace asio
75 
76 #endif // ASIO_DETAIL_FENCED_BLOCK_HPP
null_fenced_block fenced_block