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 @@ -4,5 +4,5 @@ // mutex.hpp // -// (C) Copyright 2007 Anthony Williams +// (C) Copyright 2007 Anthony Williams // // Distributed under the Boost Software License, Version 1.0. (See @@ -19,3 +19,35 @@ #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 |
Swift