#include <syscall.h>
#include <linux/futex.h>
#include <sys/time.h>
-#include <cassert>
#include <climits>
#include <atomic>
#include <thread>
+#include <glog/logging.h>
#include <folly/Bits.h>
#include <folly/Likely.h>
// #waiters gets to 0, the less likely it is that we'll do spurious wakeups
// (and thus system calls).
uint64_t prev = val_.fetch_add(kSubWaiter, std::memory_order_seq_cst);
- assert((prev & kWaiterMask) != 0);
+ DCHECK_NE((prev & kWaiterMask), 0);
}
inline void EventCount::wait(Key key) noexcept {
// #waiters gets to 0, the less likely it is that we'll do spurious wakeups
// (and thus system calls)
uint64_t prev = val_.fetch_add(kSubWaiter, std::memory_order_seq_cst);
- assert((prev & kWaiterMask) != 0);
+ DCHECK_NE((prev & kWaiterMask), 0);
}
template <class Condition>