History log of /system/core/libsync/include/ndk/sync.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5bebf84845bbe1fd7fa9b12592589b443b3615a2 07-Mar-2017 Alistair Strachan <alistair.strachan@imgtec.com> libsync: ndk: Fix compilation in C mode.

Use of 'inline' without 'static' may allow the C compiler to uninline it
within the compilation unit, depending on the C standard level. Always
using 'static inline' avoids this problem.

Test: build + boot to launcher
Change-Id: Ifb6e1fa6b84286067ddc2daca4c8942c410e56ab
/system/core/libsync/include/ndk/sync.h
081806e5f2e9f8b573827b0f3d4b35d8ddb64cb9 12-Feb-2017 Jesse Hall <jessehall@google.com> sync: Add NDK sync.h and libsync

The new header provides an updated interface to libsync appropriate
for the NDK. Clients use existing syscalls where possible (e.g. poll()
instead of sync_wait()), and the remaining functions return structures
used in mainline Linux kernels rather than the Android staging sync
framework.

Over time, framework clients will be migrated to using the NDK
interface, which will eventually replace the current internal
interface. The only difference is the header will be named
<android/sync.h> in the NDK and <sync/sync.h> internally.

Bug: 35138793
Test: sync-unit-tests on bullhead
Change-Id: Ieb3649b80565393e26b604416158438d32c2a256
/system/core/libsync/include/ndk/sync.h