]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/signals2/include/boost/signals2/mutex.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / signals2 / include / boost / signals2 / mutex.hpp
1 //
2 // boost/signals2/mutex.hpp - header-only mutex
3 //
4 // Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
5 // Copyright (c) 2008 Frank Mori Hess
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See
8 // accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 //
11 // boost::signals2::mutex is a modification of
12 // boost::detail::lightweight_mutex to follow the newer Lockable
13 // concept of Boost.Thread.
14 //
15
16 #ifndef BOOST_SIGNALS2_MUTEX_HPP
17 #define BOOST_SIGNALS2_MUTEX_HPP
18
19 // MS compatible compilers support #pragma once
20
21 #if defined(_MSC_VER)
22 # pragma once
23 #endif
24
25 #include <boost/config.hpp>
26
27 #if !defined(BOOST_HAS_THREADS)
28 # include <boost/signals2/detail/lwm_nop.hpp>
29 #elif defined(BOOST_HAS_PTHREADS)
30 # include <boost/signals2/detail/lwm_pthreads.hpp>
31 #elif defined(BOOST_HAS_WINTHREADS)
32 # include <boost/signals2/detail/lwm_win32_cs.hpp>
33 #else
34 // Use #define BOOST_DISABLE_THREADS to avoid the error
35 # error Unrecognized threading platform
36 #endif
37
38 #endif // #ifndef BOOST_SIGNALS2_MUTEX_HPP