Commit c23e38c1 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

Fix opt mode error: unused parameter 'data'

Summary: Fix opt mode error: unused parameter 'data'

Reviewed By: aary

Differential Revision: D9970478

fbshipit-source-id: 8d78e5f12613776486e33e8c685e400cd88f9d03
parent d1caa885
...@@ -99,7 +99,7 @@ template <template <typename...> class Atom, typename Integer, typename... Args> ...@@ -99,7 +99,7 @@ template <template <typename...> class Atom, typename Integer, typename... Args>
void atomic_notify_one_impl(const Atom<Integer, Args...>* atomic) { void atomic_notify_one_impl(const Atom<Integer, Args...>* atomic) {
static_assert(!std::is_same<Integer, std::uint32_t>{}, ""); static_assert(!std::is_same<Integer, std::uint32_t>{}, "");
parkingLot.unpark(atomic, [&](const auto& data) { parkingLot.unpark(atomic, [&](const auto& data) {
assert(data == std::numeric_limits<std::uint32_t>::max()); FOLLY_SAFE_DCHECK(data == std::numeric_limits<std::uint32_t>::max(), "");
return UnparkControl::RemoveBreak; return UnparkControl::RemoveBreak;
}); });
} }
...@@ -114,7 +114,7 @@ template <template <typename...> class Atom, typename Integer, typename... Args> ...@@ -114,7 +114,7 @@ template <template <typename...> class Atom, typename Integer, typename... Args>
void atomic_notify_all_impl(const Atom<Integer, Args...>* atomic) { void atomic_notify_all_impl(const Atom<Integer, Args...>* atomic) {
static_assert(!std::is_same<Integer, std::uint32_t>{}, ""); static_assert(!std::is_same<Integer, std::uint32_t>{}, "");
parkingLot.unpark(atomic, [&](const auto& data) { parkingLot.unpark(atomic, [&](const auto& data) {
assert(data == std::numeric_limits<std::uint32_t>::max()); FOLLY_SAFE_DCHECK(data == std::numeric_limits<std::uint32_t>::max(), "");
return UnparkControl::RemoveContinue; return UnparkControl::RemoveContinue;
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment