Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/shared_mutex.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 #ifndef BOOST_THREAD_SHARED_MUTEX_HPP |
Chris@16 | 2 #define BOOST_THREAD_SHARED_MUTEX_HPP |
Chris@16 | 3 |
Chris@16 | 4 // shared_mutex.hpp |
Chris@16 | 5 // |
Chris@16 | 6 // (C) Copyright 2007 Anthony Williams |
Chris@16 | 7 // (C) Copyright 2011-2012 Vicente J. Botet Escriba |
Chris@16 | 8 // |
Chris@16 | 9 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 10 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 11 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 12 |
Chris@16 | 13 #include <boost/thread/detail/config.hpp> |
Chris@16 | 14 #if defined(BOOST_THREAD_PLATFORM_WIN32) |
Chris@16 | 15 #if defined(BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN) |
Chris@16 | 16 #include <boost/thread/pthread/shared_mutex.hpp> |
Chris@16 | 17 #else |
Chris@16 | 18 #include <boost/thread/win32/shared_mutex.hpp> |
Chris@16 | 19 #endif |
Chris@16 | 20 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) |
Chris@16 | 21 //#include <boost/thread/v2/shared_mutex.hpp> |
Chris@16 | 22 #include <boost/thread/pthread/shared_mutex.hpp> |
Chris@16 | 23 #else |
Chris@16 | 24 #error "Boost threads unavailable on this platform" |
Chris@16 | 25 #endif |
Chris@16 | 26 |
Chris@16 | 27 #include <boost/thread/lockable_traits.hpp> |
Chris@16 | 28 |
Chris@16 | 29 namespace boost |
Chris@16 | 30 { |
Chris@16 | 31 namespace sync |
Chris@16 | 32 { |
Chris@16 | 33 #ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES |
Chris@16 | 34 template<> |
Chris@16 | 35 struct is_basic_lockable<shared_mutex> |
Chris@16 | 36 { |
Chris@16 | 37 BOOST_STATIC_CONSTANT(bool, value = true); |
Chris@16 | 38 }; |
Chris@16 | 39 template<> |
Chris@16 | 40 struct is_lockable<shared_mutex> |
Chris@16 | 41 { |
Chris@16 | 42 BOOST_STATIC_CONSTANT(bool, value = true); |
Chris@16 | 43 }; |
Chris@16 | 44 #endif |
Chris@16 | 45 |
Chris@16 | 46 } |
Chris@16 | 47 } |
Chris@16 | 48 |
Chris@16 | 49 #endif |