1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
2002-12-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
This commit is contained in:
Ulrich Drepper
2002-12-08 03:13:06 +00:00
parent 6ccb3834eb
commit 09efc3ba12
20 changed files with 101 additions and 28 deletions

View File

@ -36,7 +36,7 @@ pthread_cond_wait (cond, mutex)
lll_mutex_lock (cond->__data.__lock);
/* Release the mutex. This might fail. */
err = pthread_mutex_unlock (mutex);
err = INTUSE(__pthread_mutex_unlock) (mutex);
if (__builtin_expect (err != 0, 0))
{
lll_mutex_unlock (cond->__data.__lock);
@ -57,7 +57,7 @@ pthread_cond_wait (cond, mutex)
lll_mutex_unlock (cond->__data.__lock);
/* We have to get the mutex before returning. */
err = pthread_mutex_lock (mutex);
err = INTUSE(__pthread_mutex_lock) (mutex);
/* Cancellation handling. */
CANCELLATION_P (THREAD_SELF);