Path: blob/21.2-virgl/include/android_stub/android/sync.h
4547 views
/*1* sync.h2*3* Copyright 2012 Google, Inc4*5* Licensed under the Apache License, Version 2.0 (the "License");6* you may not use this file except in compliance with the License.7* You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*/1718#ifndef __SYS_CORE_SYNC_H19#define __SYS_CORE_SYNC_H2021/* This file contains the legacy sync interface used by Android platform and22* device code. The direct contents will be removed over time as code23* transitions to using the updated interface in ndk/sync.h. When this file is24* empty other than the ndk/sync.h include, that file will be renamed to25* replace this one.26*27* New code should continue to include this file (#include <android/sync.h>)28* instead of ndk/sync.h so the eventual rename is seamless, but should only29* use the things declared in ndk/sync.h.30*31* This file used to be called sync/sync.h, but we renamed to that both the32* platform and NDK call it android/sync.h. A symlink from the old name to this33* one exists temporarily to avoid having to change all sync clients34* simultaneously. It will be removed when they've been updated, and probably35* after this change has been delivered to AOSP so that integrations don't36* break builds.37*/3839#include "../ndk/sync.h"4041__BEGIN_DECLS4243/* timeout in msecs */44int sync_wait(int fd, int timeout);4546__END_DECLS4748#endif /* __SYS_CORE_SYNC_H */495051