Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/lock_traits.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 2009-2012 Vicente J. Botet Escriba |
Chris@16 | 5 |
Chris@16 | 6 #ifndef BOOST_THREAD_LOCK_TRAITS_HPP |
Chris@16 | 7 #define BOOST_THREAD_LOCK_TRAITS_HPP |
Chris@16 | 8 |
Chris@16 | 9 #include <boost/thread/detail/config.hpp> |
Chris@16 | 10 //#include <boost/thread/detail/move.hpp> |
Chris@16 | 11 //#include <boost/thread/exceptions.hpp> |
Chris@16 | 12 // |
Chris@16 | 13 //#ifdef BOOST_THREAD_USES_CHRONO |
Chris@16 | 14 //#include <boost/chrono/time_point.hpp> |
Chris@16 | 15 //#include <boost/chrono/duration.hpp> |
Chris@16 | 16 //#endif |
Chris@16 | 17 |
Chris@16 | 18 #include <boost/type_traits/integral_constant.hpp> |
Chris@16 | 19 |
Chris@16 | 20 #include <boost/config/abi_prefix.hpp> |
Chris@16 | 21 |
Chris@16 | 22 namespace boost |
Chris@16 | 23 { |
Chris@16 | 24 |
Chris@16 | 25 /** |
Chris@16 | 26 * An strict lock is a lock ensuring the mutex is locked on the scope of the lock |
Chris@16 | 27 * There is no single way to define a strict lock as the strict_lock and |
Chris@16 | 28 * nesteed_strict_lock shows. So we need a metafunction that states if a |
Chris@16 | 29 * lock is a strict lock "sur parole". |
Chris@16 | 30 */ |
Chris@16 | 31 |
Chris@16 | 32 template <typename Lock> |
Chris@16 | 33 struct is_strict_lock_sur_parolle : false_type {}; |
Chris@16 | 34 |
Chris@16 | 35 |
Chris@16 | 36 template <typename Lock> |
Chris@16 | 37 struct is_strict_lock_sur_parole : is_strict_lock_sur_parolle<Lock> {}; |
Chris@16 | 38 |
Chris@16 | 39 template <typename Lock> |
Chris@16 | 40 struct is_strict_lock : is_strict_lock_sur_parole<Lock> {}; |
Chris@16 | 41 |
Chris@16 | 42 } |
Chris@16 | 43 #include <boost/config/abi_suffix.hpp> |
Chris@16 | 44 |
Chris@16 | 45 #endif |