Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:08:48

0001 //
0002 //  boost/signals2/mutex.hpp - header-only mutex
0003 //
0004 //  Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
0005 //  Copyright (c) 2008 Frank Mori Hess
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See
0008 // accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 //  boost::signals2::mutex is a modification of
0012 //  boost::detail::lightweight_mutex to follow the newer Lockable
0013 //  concept of Boost.Thread.
0014 //
0015 
0016 #ifndef BOOST_SIGNALS2_MUTEX_HPP
0017 #define BOOST_SIGNALS2_MUTEX_HPP
0018 
0019 // MS compatible compilers support #pragma once
0020 
0021 #if defined(_MSC_VER)
0022 # pragma once
0023 #endif
0024 
0025 #include <boost/config.hpp>
0026 
0027 #if !defined(BOOST_HAS_THREADS)
0028 # include <boost/signals2/detail/lwm_nop.hpp>
0029 #elif defined(BOOST_HAS_PTHREADS)
0030 #  include <boost/signals2/detail/lwm_pthreads.hpp>
0031 #elif defined(BOOST_HAS_WINTHREADS)
0032 #  include <boost/signals2/detail/lwm_win32_cs.hpp>
0033 #else
0034 // Use #define BOOST_DISABLE_THREADS to avoid the error
0035 #  error Unrecognized threading platform
0036 #endif
0037 
0038 #endif // #ifndef BOOST_SIGNALS2_MUTEX_HPP