/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
#pragma once
+#include <boost/thread.hpp>
#include <folly/LockTraits.h>
#if FOLLY_LOCK_TRAITS_HAVE_TIMED_MUTEXES
-#include <boost/thread.hpp>
namespace folly {
*/
template <>
struct LockTraits<boost::shared_mutex>
- : public folly::detail::LockTraitsSharedBase<boost::shared_mutex> {
+ : public LockTraitsBase<boost::shared_mutex> {
static constexpr bool is_shared = true;
static constexpr bool is_timed = true;
*/
template <>
struct LockTraits<boost::timed_mutex>
- : public folly::detail::LockTraitsUniqueBase<boost::timed_mutex> {
+ : public LockTraitsBase<boost::timed_mutex> {
static constexpr bool is_shared = false;
static constexpr bool is_timed = true;
*/
template <>
struct LockTraits<boost::recursive_timed_mutex>
- : public folly::detail::LockTraitsUniqueBase<boost::recursive_timed_mutex> {
+ : public LockTraitsBase<boost::recursive_timed_mutex> {
static constexpr bool is_shared = false;
static constexpr bool is_timed = true;