Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
detail
mutex.hpp
Go to the documentation of this file.
1
//
2
// detail/mutex.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_MUTEX_HPP
12
#define ASIO_DETAIL_MUTEX_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
# include "
asio/detail/null_mutex.hpp
"
22
#elif defined(ASIO_WINDOWS)
23
# include "
asio/detail/win_mutex.hpp
"
24
#elif defined(ASIO_HAS_PTHREADS)
25
# include "
asio/detail/posix_mutex.hpp
"
26
#elif defined(ASIO_HAS_STD_MUTEX_AND_CONDVAR)
27
# include "
asio/detail/std_mutex.hpp
"
28
#else
29
# error Only Windows, POSIX and std::mutex are supported!
30
#endif
31
32
namespace
asio
{
33
namespace
detail {
34
35
#if !defined(ASIO_HAS_THREADS)
36
typedef
null_mutex
mutex
;
37
#elif defined(ASIO_WINDOWS)
38
typedef
win_mutex
mutex
;
39
#elif defined(ASIO_HAS_PTHREADS)
40
typedef
posix_mutex
mutex
;
41
#elif defined(ASIO_HAS_STD_MUTEX_AND_CONDVAR)
42
typedef
std_mutex
mutex
;
43
#endif
44
45
}
// namespace detail
46
}
// namespace asio
47
48
#endif // ASIO_DETAIL_MUTEX_HPP
asio::detail::null_mutex
Definition:
null_mutex.hpp:30
asio::detail::mutex
null_mutex mutex
Definition:
mutex.hpp:36
std_mutex.hpp
config.hpp
win_mutex.hpp
posix_mutex.hpp
null_mutex.hpp
asio
Definition:
async_result.hpp:23
Generated by
1.8.11