Commit 421c6038 authored by Kenton Varda's avatar Kenton Varda

__linux__ -> KJ_USE_FUTEX

parent 3fa44ffe
......@@ -25,7 +25,7 @@
#include "debug.h"
#include <exception>
#if __linux__
#if KJ_USE_FUTEX
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/futex.h>
......@@ -218,7 +218,7 @@ void EventLoop::Event::disarm() {
// =======================================================================================
#if __linux__
#if KJ_USE_FUTEX
SimpleEventLoop::SimpleEventLoop() {}
SimpleEventLoop::~SimpleEventLoop() noexcept(false) {}
......
......@@ -366,7 +366,7 @@ protected:
private:
mutable int preparedToSleep = 0;
#if !__linux__
#if !KJ_USE_FUTEX
mutable pthread_mutex_t mutex;
mutable pthread_cond_t condvar;
#endif
......
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