Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/detail/lockable_wrapper.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 2 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 3 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 4 // (C) Copyright 2012 Vicente J. Botet Escriba |
Chris@16 | 5 |
Chris@16 | 6 #ifndef BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP |
Chris@16 | 7 #define BOOST_THREAD_DETAIL_LOCKABLE_WRAPPER_HPP |
Chris@16 | 8 |
Chris@16 | 9 #include <boost/thread/detail/config.hpp> |
Chris@16 | 10 |
Chris@16 | 11 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST |
Chris@16 | 12 #include <initializer_list> |
Chris@16 | 13 #endif |
Chris@16 | 14 #include <boost/config/abi_prefix.hpp> |
Chris@16 | 15 |
Chris@16 | 16 namespace boost |
Chris@16 | 17 { |
Chris@16 | 18 |
Chris@16 | 19 #if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST |
Chris@16 | 20 namespace thread_detail |
Chris@16 | 21 { |
Chris@16 | 22 template <typename Mutex> |
Chris@16 | 23 struct lockable_wrapper |
Chris@16 | 24 { |
Chris@16 | 25 Mutex* m; |
Chris@16 | 26 explicit lockable_wrapper(Mutex& m_) : |
Chris@16 | 27 m(&m_) |
Chris@16 | 28 {} |
Chris@16 | 29 }; |
Chris@16 | 30 template <typename Mutex> |
Chris@16 | 31 struct lockable_adopt_wrapper |
Chris@16 | 32 { |
Chris@16 | 33 Mutex* m; |
Chris@16 | 34 explicit lockable_adopt_wrapper(Mutex& m_) : |
Chris@16 | 35 m(&m_) |
Chris@16 | 36 {} |
Chris@16 | 37 }; |
Chris@16 | 38 } |
Chris@16 | 39 #endif |
Chris@16 | 40 |
Chris@16 | 41 } |
Chris@16 | 42 |
Chris@16 | 43 #include <boost/config/abi_suffix.hpp> |
Chris@16 | 44 |
Chris@16 | 45 #endif // header |