am 03335d91: am 136e7f2b: am 611b903c: Merge "Properly detect timeout in pthread_mutex_lock_timeout_np_impl"
* commit '03335d91248aaf4c70a126fbf80481a924c4588b': Properly detect timeout in pthread_mutex_lock_timeout_np_impl
This commit is contained in:
commit
67a5d0a429
@ -783,7 +783,7 @@ int pthread_mutex_lock_timeout_np_impl(pthread_mutex_t *mutex, unsigned msecs)
|
||||
* thread.
|
||||
*/
|
||||
if (MUTEX_STATE_BITS_IS_LOCKED_CONTENDED(mvalue)) {
|
||||
if (__futex_wait_ex(&mutex->value, shared, mvalue, &ts) == ETIMEDOUT) {
|
||||
if (__futex_wait_ex(&mutex->value, shared, mvalue, &ts) == (-ETIMEDOUT)) {
|
||||
return EBUSY;
|
||||
}
|
||||
mvalue = mutex->value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user