diff options
author | David 'Digit' Turner <digit@google.com> | 2010-06-28 14:10:14 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-07-02 15:09:57 -0700 |
commit | 519763265ec0b634bd9c264a0aca034882458ecc (patch) | |
tree | 263dc7f4fa4256869cea19e6ea8a077d29bd95ad /libc/unistd/sysconf.c | |
parent | a02b93bd75a9d156117264d88069566e447397e2 (diff) | |
download | bionic-519763265ec0b634bd9c264a0aca034882458ecc.zip bionic-519763265ec0b634bd9c264a0aca034882458ecc.tar.gz bionic-519763265ec0b634bd9c264a0aca034882458ecc.tar.bz2 |
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
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r-- | libc/unistd/sysconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 27b113c..9377802 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -44,7 +44,7 @@ #define SYSTEM_MQ_OPEN_MAX 8 #define SYSTEM_MQ_PRIO_MAX 32768 #define SYSTEM_SEM_NSEMS_MAX 256 -#define SYSTEM_SEM_VALUE_MAX (2147483647) +#define SYSTEM_SEM_VALUE_MAX 0x3fffffff /* see bionic/semaphore.c */ #define SYSTEM_SIGQUEUE_MAX 32 #define SYSTEM_TIMER_MAX 32 #define SYSTEM_LOGIN_NAME_MAX 256 |