Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // (C) Copyright 2012 Vicente J. Botet Escriba Chris@16: Chris@16: #ifndef BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP Chris@16: #define BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: #include Chris@16: #endif Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: Chris@16: #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: namespace thread_detail Chris@16: { Chris@16: template Chris@16: struct lockable_wrapper Chris@16: { Chris@16: Mutex* m; Chris@16: explicit lockable_wrapper(Mutex& m_) : Chris@16: m(&m_) Chris@16: {} Chris@16: }; Chris@16: template Chris@16: struct lockable_adopt_wrapper Chris@16: { Chris@16: Mutex* m; Chris@16: explicit lockable_adopt_wrapper(Mutex& m_) : Chris@16: m(&m_) Chris@16: {} Chris@16: }; Chris@16: } Chris@16: #endif Chris@16: Chris@16: } Chris@16: Chris@16: #include Chris@16: Chris@16: #endif // header