Chris@16: #ifndef BOOST_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED Chris@16: #define BOOST_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1020) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: // Chris@16: // boost/detail/lightweight_mutex.hpp - lightweight mutex Chris@16: // Chris@16: // Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd. 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: // typedef boost::detail::lightweight_mutex; Chris@16: // Chris@16: // boost::detail::lightweight_mutex is a header-only implementation of Chris@16: // a subset of the Mutex concept requirements: Chris@16: // Chris@16: // http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex Chris@16: // Chris@16: // It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX. Chris@16: // 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) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 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_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED