summaryrefslogtreecommitdiffstats
path: root/libc/bionic/semaphore.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: Fix sem_post() implementation to wake up all waiting threads.David 'Digit' Turner2010-07-021-46/+175
| | | | | | | This also allows us to optimize the case where we increment an uncontended semaphore (no need to call futex_wake() then). Change-Id: Iad48efe8551dc66dc89d3e3f18c001e5a6c1939f
* libc: remove cutils dependenciesDavid 'Digit' Turner2010-06-111-1/+1
| | | | | | | | We simply copy the stuff we need from cutils headers. A future patch will change cutils to include the private <bionic_atomic_inline.h> Change-Id: Ib6fd9a03bc9e337ce867bd606dc94c2b4438480a
* Use private futexes for semaphores, unless they are initialized with pshared ↵David 'Digit' Turner2010-06-081-15/+65
| | | | | | | != 0. Change-Id: I534e36a7171cd37037ae03b910ba71ea6968286d Note: previously, sem_init() would return an error if pshared != 0.
* Atomic/SMP update, part 3.Andy McFadden2010-05-281-2/+12
| | | | | | | | | | Update ARM atomic ops to use LDREX/STREX. Stripped out #if 0 chunk. Insert explicit memory barriers in pthread and semaphore code. For bug 2721865. Change-Id: I0f153b797753a655702d8be41679273d1d5d6ae7
* Fix sem_post() behaviour to wake up multiple waiting threads.David 'Digit' Turner2010-02-121-1/+1
|
* Fix sem_trywait() implementation + update changelog.David 'Digit' Turner2010-02-121-1/+2
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+212
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-212/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-0/+57
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+155