lightweight_mutex.hpp
Go to the documentation of this file.
00001 #ifndef BOOST_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
00002 #define BOOST_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
00003 
00004 // MS compatible compilers support #pragma once
00005 
00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
00007 # pragma once
00008 #endif
00009 
00010 //
00011 //  boost/detail/lightweight_mutex.hpp - lightweight mutex
00012 //
00013 //  Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
00014 //
00015 // Distributed under the Boost Software License, Version 1.0. (See
00016 // accompanying file LICENSE_1_0.txt or copy at
00017 // http://www.boost.org/LICENSE_1_0.txt)
00018 //
00019 //  typedef <unspecified> boost::detail::lightweight_mutex;
00020 //
00021 //  boost::detail::lightweight_mutex is a header-only implementation of
00022 //  a subset of the Mutex concept requirements:
00023 //
00024 //  http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex
00025 //
00026 //  It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX.
00027 //
00028 
00029 #include <boost/config.hpp>
00030 
00031 #if !defined(BOOST_HAS_THREADS)
00032 #  include <boost/smart_ptr/detail/lwm_nop.hpp>
00033 #elif defined(BOOST_HAS_PTHREADS)
00034 #  include <boost/smart_ptr/detail/lwm_pthreads.hpp>
00035 #elif defined(BOOST_HAS_WINTHREADS) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00036 #  include <boost/smart_ptr/detail/lwm_win32_cs.hpp>
00037 #else
00038 // Use #define BOOST_DISABLE_THREADS to avoid the error
00039 #  error Unrecognized threading platform
00040 #endif
00041 
00042 #endif // #ifndef BOOST_SMART_PTR_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29