1 // Distributed under the Boost Software License, Version 1.0. (See
2 // accompanying file LICENSE_1_0.txt or copy at
3 // http://www.boost.org/LICENSE_1_0.txt)
4 // (C) Copyright 2012 Vicente J. Botet Escriba
6 #ifndef BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP
7 #define BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP
9 #include <boost/thread/detail/config.hpp>
11 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST
12 #include <initializer_list>
14 #include <boost/config/abi_prefix.hpp>
19 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST
20 namespace thread_detail
22 template <typename Mutex>
23 struct lockable_wrapper
26 explicit lockable_wrapper(Mutex& m_) :
30 template <typename Mutex>
31 struct lockable_adopt_wrapper
34 explicit lockable_adopt_wrapper(Mutex& m_) :
43 #include <boost/config/abi_suffix.hpp>