File indexing completed on 2025-01-18 09:52:46
0001
0002
0003
0004
0005
0006 #ifndef BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP
0007 #define BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP
0008
0009 #include <boost/thread/detail/config.hpp>
0010
0011 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST
0012 #include <initializer_list>
0013 #endif
0014 #include <boost/config/abi_prefix.hpp>
0015
0016 namespace boost
0017 {
0018
0019 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST
0020 namespace thread_detail
0021 {
0022 template <typename Mutex>
0023 struct lockable_wrapper
0024 {
0025 Mutex* m;
0026 explicit lockable_wrapper(Mutex& m_) :
0027 m(&m_)
0028 {}
0029 };
0030 template <typename Mutex>
0031 struct lockable_adopt_wrapper
0032 {
0033 Mutex* m;
0034 explicit lockable_adopt_wrapper(Mutex& m_) :
0035 m(&m_)
0036 {}
0037 };
0038 }
0039 #endif
0040
0041 }
0042
0043 #include <boost/config/abi_suffix.hpp>
0044
0045 #endif