summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-03-23 05:30:55 -0700
committerDavid 'Digit' Turner <digit@google.com>2010-03-23 05:30:55 -0700
commit5207d78c321571b4b5ef3dd405198267a0d940b1 (patch)
treed68a66aeac566fac1fe085a8728a86df80cfb295
parentb5e4a416060aa7f0a1e2a9ad5b8e318d59986852 (diff)
downloadbionic-5207d78c321571b4b5ef3dd405198267a0d940b1.zip
bionic-5207d78c321571b4b5ef3dd405198267a0d940b1.tar.gz
bionic-5207d78c321571b4b5ef3dd405198267a0d940b1.tar.bz2
Fix typo that broke recursive mutexes implementation.
Change-Id: I832901604b487c6a50304c311b5ba135e153530d
-rw-r--r--libc/bionic/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index f93a241..ae44b06 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -1124,7 +1124,7 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex)
/* Wake one waiting thread, if any */
if ((oldv & 3) == 2) {
- int wake_op = shared ? FUTEX_WAIT_PRIVATE : FUTEX_WAIT;
+ int wake_op = shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE;
__futex_syscall3(&mutex->value, wake_op, 1);
}
return 0;