Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:52:46

0001 // Distributed under the Boost Software License, Version 1.0. (See
0002 // accompanying file LICENSE_1_0.txt or copy at
0003 // http://www.boost.org/LICENSE_1_0.txt)
0004 // (C) Copyright 2012 Vicente J. Botet Escriba
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 // header