summaryrefslogtreecommitdiff
path: root/pthread_mutex_destroy.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_destroy.c
parentd5c1ab47d8cb1e11feae5719e44972015e284516 (diff)
Add PTHREAD_{RECURSIVE,ERRORCHECK}_MUTEX_INITIALIZER{,_NP}snap-2004-06-22
Diffstat (limited to 'pthread_mutex_destroy.c')
-rw-r--r--pthread_mutex_destroy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread_mutex_destroy.c b/pthread_mutex_destroy.c
index d23af53..a777598 100644
--- a/pthread_mutex_destroy.c
+++ b/pthread_mutex_destroy.c
@@ -52,7 +52,7 @@ pthread_mutex_destroy (pthread_mutex_t * mutex)
/*
* Check to see if we have something to delete.
*/
- if (*mutex != PTHREAD_MUTEX_INITIALIZER)
+ if (*mutex < PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
{
mx = *mutex;
@@ -115,7 +115,7 @@ pthread_mutex_destroy (pthread_mutex_t * mutex)
/*
* Check again.
*/
- if (*mutex == PTHREAD_MUTEX_INITIALIZER)
+ if (*mutex >= PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
{
/*
* This is all we need to do to destroy a statically