mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Update.
2000-03-16 Ulrich Drepper <drepper@redhat.com> * condvar.c: Make tests for ownership of mutex less strict.
This commit is contained in:
parent
ee5cda9b43
commit
13a836048c
@ -1,3 +1,7 @@
|
||||
2000-03-16 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* condvar.c: Make tests for ownership of mutex less strict.
|
||||
|
||||
2000-03-14 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* condvar.c (pthread_cond_wait): Check whether mutex is owned by
|
||||
|
@ -78,7 +78,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
|
||||
int already_canceled = 0;
|
||||
|
||||
/* Check whether the mutex is locked and owned by this thread. */
|
||||
if (mutex->__m_owner != self)
|
||||
if (mutex->__m_kind != PTHREAD_MUTEX_FAST_NP && mutex->__m_owner != self)
|
||||
return EINVAL;
|
||||
|
||||
/* Set up extrication interface */
|
||||
@ -144,7 +144,7 @@ pthread_cond_timedwait_relative_old(pthread_cond_t *cond,
|
||||
pthread_extricate_if extr;
|
||||
|
||||
/* Check whether the mutex is locked and owned by this thread. */
|
||||
if (mutex->__m_owner != self)
|
||||
if (mutex->__m_kind != PTHREAD_MUTEX_FAST_NP && mutex->__m_owner != self)
|
||||
return EINVAL;
|
||||
|
||||
/* Set up extrication interface */
|
||||
|
Loading…
Reference in New Issue
Block a user