Elliott Hughes
95b0680cde
POSIX says SEM_FAILED shall have type sem_t*.
...
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/semaphore.h.html
(Even if it didn't, this header previously referred to NULL without ensuring
that NULL was actually visible.)
Change-Id: I70577f4afc21f32c9e585076986127899ef8c8c1
2016-08-12 10:28:52 -07:00
Yabin Cui
a3d97da4c5
Switch sem_t from bionic atomics to stdatomic.h.
...
Bug: 17572887
Change-Id: If66851ba9b831cdd698b9f1303289bb14448bd03
2015-02-03 16:35:57 -08:00
Elliott Hughes
04303f5a8a
Add semaphore tests, fix sem_destroy.
...
Bug: https://code.google.com/p/android/issues/detail?id=76088
Change-Id: I4a0561b23e90312384d40a1c804ca64ee98f4066
2014-09-19 17:37:06 -07:00
Calin Juravle
0686d5e26f
Reserve some space in sem_t for the future.
...
Reserve 12 more bytes in sem_t to give room for future implementation
improvements. This gets us to a 16 bytes sem_t. Glibc uses 32 bytes (16
actual use + 16 reserved), while OpenBSD has 16 bytes (out of which 4
are for padding).
Bug: 14587103
Bug: 12875898
Change-Id: Id835cc5abf874c651e6b5ad5b8f29c9d6ab08d5a
2014-05-06 16:24:27 +01:00
The Android Open Source Project
1dc9e472e1
auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
The Android Open Source Project
1767f908af
auto import from //depot/cupcake/@135843
2009-03-03 18:28:13 -08:00
The Android Open Source Project
d37527501c
auto import from //branches/cupcake/...@127101
2009-01-20 14:03:55 -08:00
The Android Open Source Project
a27d2baa0c
Initial Contribution
2008-10-21 07:00:00 -07:00