sl@0: #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED sl@0: #define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED sl@0: sl@0: // MS compatible compilers support #pragma once sl@0: sl@0: #if defined(_MSC_VER) && (_MSC_VER >= 1020) sl@0: # pragma once sl@0: #endif sl@0: sl@0: // sl@0: // boost/detail/lightweight_mutex.hpp - lightweight mutex sl@0: // sl@0: // Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd. sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // typedef boost::detail::lightweight_mutex; sl@0: // sl@0: // boost::detail::lightweight_mutex is a header-only implementation of sl@0: // a subset of the Mutex concept requirements: sl@0: // sl@0: // http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex sl@0: // sl@0: // It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX. sl@0: // sl@0: sl@0: #include sl@0: sl@0: #if !defined(BOOST_HAS_THREADS) sl@0: # include sl@0: #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) sl@0: # include sl@0: #elif defined(BOOST_HAS_PTHREADS) sl@0: # include sl@0: #else sl@0: // Use #define BOOST_DISABLE_THREADS to avoid the error sl@0: # error Unrecognized threading platform sl@0: #endif sl@0: sl@0: #endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED