diff options
Diffstat (limited to '3rdParty/Boost/src/boost/thread/mutex.hpp')
-rw-r--r-- | 3rdParty/Boost/src/boost/thread/mutex.hpp | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/3rdParty/Boost/src/boost/thread/mutex.hpp b/3rdParty/Boost/src/boost/thread/mutex.hpp index 4669886..05c6094 100644 --- a/3rdParty/Boost/src/boost/thread/mutex.hpp +++ b/3rdParty/Boost/src/boost/thread/mutex.hpp @@ -1,12 +1,12 @@ #ifndef BOOST_THREAD_MUTEX_HPP #define BOOST_THREAD_MUTEX_HPP // mutex.hpp // -// (C) Copyright 2007 Anthony Williams +// (C) Copyright 2007 Anthony Williams // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/detail/platform.hpp> @@ -15,7 +15,39 @@ #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) #include <boost/thread/pthread/mutex.hpp> #else #error "Boost threads unavailable on this platform" #endif +#include <boost/thread/lockable_traits.hpp> + + +namespace boost +{ + namespace sync + { +#ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES + template<> + struct is_basic_lockable<mutex> + { + BOOST_STATIC_CONSTANT(bool, value = true); + }; + template<> + struct is_lockable<mutex> + { + BOOST_STATIC_CONSTANT(bool, value = true); + }; + template<> + struct is_basic_lockable<timed_mutex> + { + BOOST_STATIC_CONSTANT(bool, value = true); + }; + template<> + struct is_lockable<timed_mutex> + { + BOOST_STATIC_CONSTANT(bool, value = true); + }; +#endif + } +} + #endif |