YouCompleteMe/cpp/BoostParts/boost/thread/shared_mutex.hpp

50 lines
1.2 KiB
C++
Raw Normal View History

2012-05-10 00:45:30 -04:00
#ifndef BOOST_THREAD_SHARED_MUTEX_HPP
#define BOOST_THREAD_SHARED_MUTEX_HPP
// shared_mutex.hpp
//
2012-07-21 14:37:40 -04:00
// (C) Copyright 2007 Anthony Williams
// (C) Copyright 2011-2012 Vicente J. Botet Escriba
2012-05-10 00:45:30 -04:00
//
// 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)
2012-07-21 14:37:40 -04:00
#include <boost/thread/detail/config.hpp>
2012-05-10 00:45:30 -04:00
#if defined(BOOST_THREAD_PLATFORM_WIN32)
2012-07-21 14:37:40 -04:00
#if defined(BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN)
#include <boost/thread/pthread/shared_mutex.hpp>
#else
2012-05-10 00:45:30 -04:00
#include <boost/thread/win32/shared_mutex.hpp>
2012-07-21 14:37:40 -04:00
#endif
2012-05-10 00:45:30 -04:00
#elif defined(BOOST_THREAD_PLATFORM_PTHREAD)
2013-08-25 17:35:47 -04:00
//#include <boost/thread/v2/shared_mutex.hpp>
2012-05-10 00:45:30 -04:00
#include <boost/thread/pthread/shared_mutex.hpp>
#else
#error "Boost threads unavailable on this platform"
#endif
2013-02-13 23:03:52 -05:00
#include <boost/thread/lockable_traits.hpp>
namespace boost
{
namespace sync
{
#ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
template<>
struct is_basic_lockable<shared_mutex>
{
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_lockable<shared_mutex>
{
BOOST_STATIC_CONSTANT(bool, value = true);
};
#endif
}
}
2012-05-10 00:45:30 -04:00
#endif