OSDN Git Service

libc: Fix sem_post() implementation to wake up all waiting threads.
authorDavid 'Digit' Turner <digit@google.com>
Mon, 28 Jun 2010 21:10:14 +0000 (14:10 -0700)
committerDavid 'Digit' Turner <digit@google.com>
Fri, 2 Jul 2010 22:09:57 +0000 (15:09 -0700)
commit519763265ec0b634bd9c264a0aca034882458ecc
tree263dc7f4fa4256869cea19e6ea8a077d29bd95ad
parenta02b93bd75a9d156117264d88069566e447397e2
libc: Fix sem_post() implementation to wake up all waiting threads.

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/bionic/semaphore.c
libc/docs/CHANGES.TXT
libc/unistd/sysconf.c