Return result of lock re-get if it fails.
This commit is contained in:
parent
d63609a7b6
commit
a3cd7da30f
|
@ -206,14 +206,15 @@ __pthread_cond_timedwait:
|
||||||
call __pthread_mutex_lock_internal
|
call __pthread_mutex_lock_internal
|
||||||
addl $36, %esp
|
addl $36, %esp
|
||||||
|
|
||||||
movl %esi, %eax
|
/* We return the result of the mutex_lock operation if it failed. */
|
||||||
|
testl %eax, %eax
|
||||||
|
cmovel %esi, %eax
|
||||||
|
|
||||||
18: popl %ebx
|
18: popl %ebx
|
||||||
popl %esi
|
popl %esi
|
||||||
popl %edi
|
popl %edi
|
||||||
popl %ebp
|
popl %ebp
|
||||||
|
|
||||||
/* We return the result of the mutex_lock operation. */
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
/* Initial locking failed. */
|
/* Initial locking failed. */
|
||||||
|
|
Loading…
Reference in New Issue