2 // boost/signals2/mutex.hpp - header-only mutex
4 // Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
5 // Copyright (c) 2008 Frank Mori Hess
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)
11 // boost::signals2::mutex is a modification of
12 // boost::detail::lightweight_mutex to follow the newer Lockable
13 // concept of Boost.Thread.
16 #ifndef BOOST_SIGNALS2_MUTEX_HPP
17 #define BOOST_SIGNALS2_MUTEX_HPP
19 // MS compatible compilers support #pragma once
25 #include <boost/config.hpp>
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>
34 // Use #define BOOST_DISABLE_THREADS to avoid the error
35 # error Unrecognized threading platform
38 #endif // #ifndef BOOST_SIGNALS2_MUTEX_HPP