Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/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_MUTEX_HPP |
Chris@16 | 2 #define BOOST_THREAD_MUTEX_HPP |
Chris@16 | 3 |
Chris@16 | 4 // mutex.hpp |
Chris@16 | 5 // |
Chris@16 | 6 // (C) Copyright 2007 Anthony Williams |
Chris@16 | 7 // |
Chris@16 | 8 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 9 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 10 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/thread/detail/platform.hpp> |
Chris@16 | 13 #if defined(BOOST_THREAD_PLATFORM_WIN32) |
Chris@16 | 14 #include <boost/thread/win32/mutex.hpp> |
Chris@16 | 15 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) |
Chris@16 | 16 #include <boost/thread/pthread/mutex.hpp> |
Chris@16 | 17 #else |
Chris@16 | 18 #error "Boost threads unavailable on this platform" |
Chris@16 | 19 #endif |
Chris@16 | 20 |
Chris@16 | 21 #include <boost/thread/lockable_traits.hpp> |
Chris@16 | 22 |
Chris@16 | 23 |
Chris@16 | 24 namespace boost |
Chris@16 | 25 { |
Chris@16 | 26 namespace sync |
Chris@16 | 27 { |
Chris@16 | 28 #ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES |
Chris@16 | 29 template<> |
Chris@16 | 30 struct is_basic_lockable<mutex> |
Chris@16 | 31 { |
Chris@16 | 32 BOOST_STATIC_CONSTANT(bool, value = true); |
Chris@16 | 33 }; |
Chris@16 | 34 template<> |
Chris@16 | 35 struct is_lockable<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_basic_lockable<timed_mutex> |
Chris@16 | 41 { |
Chris@16 | 42 BOOST_STATIC_CONSTANT(bool, value = true); |
Chris@16 | 43 }; |
Chris@16 | 44 template<> |
Chris@16 | 45 struct is_lockable<timed_mutex> |
Chris@16 | 46 { |
Chris@16 | 47 BOOST_STATIC_CONSTANT(bool, value = true); |
Chris@16 | 48 }; |
Chris@16 | 49 #endif |
Chris@16 | 50 } |
Chris@16 | 51 } |
Chris@16 | 52 |
Chris@16 | 53 #endif |