xref: /aosp_15_r20/external/mesa3d/include/android_stub/android/sync.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  *  sync.h
3*61046927SAndroid Build Coastguard Worker  *
4*61046927SAndroid Build Coastguard Worker  *   Copyright 2012 Google, Inc
5*61046927SAndroid Build Coastguard Worker  *
6*61046927SAndroid Build Coastguard Worker  *  Licensed under the Apache License, Version 2.0 (the "License");
7*61046927SAndroid Build Coastguard Worker  *  you may not use this file except in compliance with the License.
8*61046927SAndroid Build Coastguard Worker  *  You may obtain a copy of the License at
9*61046927SAndroid Build Coastguard Worker  *
10*61046927SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
11*61046927SAndroid Build Coastguard Worker  *
12*61046927SAndroid Build Coastguard Worker  *  Unless required by applicable law or agreed to in writing, software
13*61046927SAndroid Build Coastguard Worker  *  distributed under the License is distributed on an "AS IS" BASIS,
14*61046927SAndroid Build Coastguard Worker  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*61046927SAndroid Build Coastguard Worker  *  See the License for the specific language governing permissions and
16*61046927SAndroid Build Coastguard Worker  *  limitations under the License.
17*61046927SAndroid Build Coastguard Worker  */
18*61046927SAndroid Build Coastguard Worker 
19*61046927SAndroid Build Coastguard Worker #ifndef __SYS_CORE_SYNC_H
20*61046927SAndroid Build Coastguard Worker #define __SYS_CORE_SYNC_H
21*61046927SAndroid Build Coastguard Worker 
22*61046927SAndroid Build Coastguard Worker /* This file contains the legacy sync interface used by Android platform and
23*61046927SAndroid Build Coastguard Worker  * device code. The direct contents will be removed over time as code
24*61046927SAndroid Build Coastguard Worker  * transitions to using the updated interface in ndk/sync.h. When this file is
25*61046927SAndroid Build Coastguard Worker  * empty other than the ndk/sync.h include, that file will be renamed to
26*61046927SAndroid Build Coastguard Worker  * replace this one.
27*61046927SAndroid Build Coastguard Worker  *
28*61046927SAndroid Build Coastguard Worker  * New code should continue to include this file (#include <android/sync.h>)
29*61046927SAndroid Build Coastguard Worker  * instead of ndk/sync.h so the eventual rename is seamless, but should only
30*61046927SAndroid Build Coastguard Worker  * use the things declared in ndk/sync.h.
31*61046927SAndroid Build Coastguard Worker  *
32*61046927SAndroid Build Coastguard Worker  * This file used to be called sync/sync.h, but we renamed to that both the
33*61046927SAndroid Build Coastguard Worker  * platform and NDK call it android/sync.h. A symlink from the old name to this
34*61046927SAndroid Build Coastguard Worker  * one exists temporarily to avoid having to change all sync clients
35*61046927SAndroid Build Coastguard Worker  * simultaneously. It will be removed when they've been updated, and probably
36*61046927SAndroid Build Coastguard Worker  * after this change has been delivered to AOSP so that integrations don't
37*61046927SAndroid Build Coastguard Worker  * break builds.
38*61046927SAndroid Build Coastguard Worker  */
39*61046927SAndroid Build Coastguard Worker 
40*61046927SAndroid Build Coastguard Worker #include "../ndk/sync.h"
41*61046927SAndroid Build Coastguard Worker 
42*61046927SAndroid Build Coastguard Worker __BEGIN_DECLS
43*61046927SAndroid Build Coastguard Worker 
44*61046927SAndroid Build Coastguard Worker /* timeout in msecs */
45*61046927SAndroid Build Coastguard Worker int sync_wait(int fd, int timeout);
46*61046927SAndroid Build Coastguard Worker 
47*61046927SAndroid Build Coastguard Worker __END_DECLS
48*61046927SAndroid Build Coastguard Worker 
49*61046927SAndroid Build Coastguard Worker #endif /* __SYS_CORE_SYNC_H */
50