Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2000-03-16  Ulrich Drepper  <drepper@redhat.com>

	* condvar.c: Make tests for ownership of mutex less strict.
  • Loading branch information
Ulrich Drepper committed Mar 16, 2000
1 parent ee5cda9 commit 13a8360
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads/condvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 13a8360

Please sign in to comment.