Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / sandbox / linux / services / android_futex.h
blob032b02481a14600ba4833a791a72233acebf99a1
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_FUTEX_H_
6 #define SANDBOX_LINUX_SERVICES_ANDROID_FUTEX_H_
8 #if !defined(FUTEX_PRIVATE_FLAG)
9 #define FUTEX_PRIVATE_FLAG 128
10 #endif
12 #if !defined(FUTEX_CLOCK_REALTIME)
13 #define FUTEX_CLOCK_REALTIME 256
14 #endif
16 #if !defined(FUTEX_CMP_REQUEUE_PI)
17 #define FUTEX_CMP_REQUEUE_PI 12
18 #endif
20 #if !defined(FUTEX_CMP_REQUEUE_PI_PRIVATE)
21 #define FUTEX_CMP_REQUEUE_PI_PRIVATE (FUTEX_CMP_REQUEUE_PI | FUTEX_PRIVATE_FLAG)
22 #endif
24 #if !defined(FUTEX_CMD_MASK)
25 #define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
26 #endif
28 #endif // SANDBOX_LINUX_SERVICES_ANDROID_FUTEX_H_