summaryrefslogtreecommitdiff
path: root/pthread_mutex_unlock.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-06-22 06:12:54 +0000
committerrpj <rpj>2004-06-22 06:12:54 +0000
commitcf236808ad018ce10123321fab0917550e181aa2 (patch)
treeea0b63b989688fb6205675424a7d1626166a3c35 /pthread_mutex_unlock.c
parentd5c1ab47d8cb1e11feae5719e44972015e284516 (diff)
Add PTHREAD_{RECURSIVE,ERRORCHECK}_MUTEX_INITIALIZER{,_NP}snap-2004-06-22
Diffstat (limited to 'pthread_mutex_unlock.c')
-rw-r--r--pthread_mutex_unlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_mutex_unlock.c b/pthread_mutex_unlock.c
index aff3637..05677c8 100644
--- a/pthread_mutex_unlock.c
+++ b/pthread_mutex_unlock.c
@@ -56,7 +56,7 @@ pthread_mutex_unlock (pthread_mutex_t * mutex)
* race condition. If another thread holds the
* lock then we shouldn't be in here.
*/
- if (mx != PTHREAD_MUTEX_INITIALIZER)
+ if (mx < PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
{
if (mx->ownerThread == (pthread_t) PTW32_MUTEX_OWNER_ANONYMOUS
|| pthread_equal (mx->ownerThread, pthread_self ()))