Commit 5207d78c authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

Fix typo that broke recursive mutexes implementation.

Change-Id: I832901604b487c6a50304c311b5ba135e153530d
parent b5e4a416
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment