diff options
| author | 2018-04-15 11:15:14 -0700 | |
|---|---|---|
| committer | 2018-04-15 11:17:08 -0700 | |
| commit | b4dfca56fbf5a2c3612732568dce4d200b626a3a (patch) | |
| tree | e44a0ce7c93cbd0e4f6073a8d18c65d3808314a6 /runtime/base/mutex.h | |
| parent | c3d5b84592b6d9c529090cfd1e5e9fb72a00f80b (diff) | |
The test for futex support should be a test for Linux
Test: code inspection
Change-Id: Ic07f1eff2704064cc4416fc58df81c471ff54f4e
Diffstat (limited to 'runtime/base/mutex.h')
| -rw-r--r-- | runtime/base/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/base/mutex.h b/runtime/base/mutex.h index b0eb23d327..1cf4ddded4 100644 --- a/runtime/base/mutex.h +++ b/runtime/base/mutex.h @@ -31,10 +31,10 @@ #include "base/globals.h" #include "base/macros.h" -#if defined(__APPLE__) -#define ART_USE_FUTEXES 0 -#else +#if defined(__linux__) #define ART_USE_FUTEXES 1 +#else +#define ART_USE_FUTEXES 0 #endif // Currently Darwin doesn't support locks with timeouts. |