#include <array>
#include <atomic>
-#include <cinttypes>
-#include <cstdlib>
+#include <cassert>
+#include <cstdint>
#include <mutex>
#include <type_traits>
-#include <boost/noncopyable.hpp>
-#include <glog/logging.h>
-
#include <folly/Portability.h>
#include <folly/detail/Sleeper.h>
sleeper.wait();
}
} while (!try_lock());
- DCHECK(payload()->load() == LOCKED);
+ assert(payload()->load() == LOCKED);
}
void unlock() {
- CHECK(payload()->load() == LOCKED);
+ assert(payload()->load() == LOCKED);
payload()->store(FREE, std::memory_order_release);
}
* @author Jordan DeLong <delong.j@fb.com>
*/
-#include <cinttypes>
+#include <cstdint>
#include <folly/portability/Asm.h>
#include <folly/portability/Time.h>