1 #ifndef BOOST_THREAD_SHARED_MUTEX_HPP
2 #define BOOST_THREAD_SHARED_MUTEX_HPP
6 // (C) Copyright 2007 Anthony Williams
7 // (C) Copyright 2011-2012 Vicente J. Botet Escriba
9 // Distributed under the Boost Software License, Version 1.0. (See
10 // accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #include <boost/thread/detail/config.hpp>
14 #if defined(BOOST_THREAD_PLATFORM_WIN32)
15 #if defined(BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN)
16 #include <boost/thread/pthread/shared_mutex.hpp>
18 #include <boost/thread/win32/shared_mutex.hpp>
20 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD)
21 //#include <boost/thread/v2/shared_mutex.hpp>
22 #include <boost/thread/pthread/shared_mutex.hpp>
24 #error "Boost threads unavailable on this platform"
27 #include <boost/thread/lockable_traits.hpp>
31 typedef shared_mutex shared_timed_mutex;
34 #ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
36 struct is_basic_lockable<shared_mutex>
38 BOOST_STATIC_CONSTANT(bool, value = true);
41 struct is_lockable<shared_mutex>
43 BOOST_STATIC_CONSTANT(bool, value = true);