1 #ifndef BOOST_THREAD_MUTEX_HPP
2 #define BOOST_THREAD_MUTEX_HPP
6 // (C) Copyright 2007 Anthony Williams
8 // Distributed under the Boost Software License, Version 1.0. (See
9 // accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
12 #include <boost/thread/detail/platform.hpp>
13 #if defined(BOOST_THREAD_PLATFORM_WIN32)
14 #include <boost/thread/win32/mutex.hpp>
15 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD)
16 #include <boost/thread/pthread/mutex.hpp>
18 #error "Boost threads unavailable on this platform"
21 #include <boost/thread/lockable_traits.hpp>
28 #ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
30 struct is_basic_lockable<mutex>
32 BOOST_STATIC_CONSTANT(bool, value = true);
35 struct is_lockable<mutex>
37 BOOST_STATIC_CONSTANT(bool, value = true);
40 struct is_basic_lockable<timed_mutex>
42 BOOST_STATIC_CONSTANT(bool, value = true);
45 struct is_lockable<timed_mutex>
47 BOOST_STATIC_CONSTANT(bool, value = true);