Chris@16: // Chris@16: // boost/signals2/mutex.hpp - header-only mutex Chris@16: // Chris@16: // Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd. Chris@16: // Copyright (c) 2008 Frank Mori Hess Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // boost::signals2::mutex is a modification of Chris@16: // boost::detail::lightweight_mutex to follow the newer Lockable Chris@16: // concept of Boost.Thread. Chris@16: // Chris@16: Chris@16: #ifndef BOOST_SIGNALS2_MUTEX_HPP Chris@16: #define BOOST_SIGNALS2_MUTEX_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: #if !defined(BOOST_HAS_THREADS) Chris@16: # include Chris@16: #elif defined(BOOST_HAS_PTHREADS) Chris@16: # include Chris@16: #elif defined(BOOST_HAS_WINTHREADS) Chris@16: # include Chris@16: #else Chris@16: // Use #define BOOST_DISABLE_THREADS to avoid the error Chris@16: # error Unrecognized threading platform Chris@16: #endif Chris@16: Chris@16: #endif // #ifndef BOOST_SIGNALS2_MUTEX_HPP