/*
- * 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.
const std::chrono::duration<Rep, std::ratio<Num, Denom>>& d) {
return boost::chrono::duration<Rep, boost::ratio<Num, Denom>>(d.count());
}
-}
+} // namespace detail
/**
* LockTraits specialization for boost::shared_mutex
*/
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;
return mutex.try_lock_for(detail::toBoostDuration(timeout));
}
};
-} // folly
+} // namespace folly
#endif // FOLLY_LOCK_TRAITS_HAVE_TIMED_MUTEXES