summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-02-07 08:45:46 +0000
committerrpj <rpj>2001-02-07 08:45:46 +0000
commit7a31ef49c345dfb39de7cd6d43eeb29c34129495 (patch)
tree9515903248d26f12144a0e6161f7b1f6fd726978 /mutex.c
parent2f4a1905d1a8c424900a8615ec730f7637482525 (diff)
Updates and minor corrections and changes.
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mutex.c b/mutex.c
index 4ef39c1..c980ee5 100644
--- a/mutex.c
+++ b/mutex.c
@@ -732,7 +732,7 @@ pthread_mutexattr_settype (pthread_mutexattr_t * attr,
* return with an error.
*
* PTHREAD_MUTEX_DEFAULT
- * Same as PTHREAD_MUTEX_ERRORCHECK.
+ * Same as PTHREAD_MUTEX_RECURSIVE.
*
* PTHREAD_MUTEX_RECURSIVE
* A thread attempting to relock this mutex without
@@ -851,7 +851,6 @@ pthread_mutex_lock(pthread_mutex_t *mutex)
ptw32_EnterCriticalSection(&mx->cs);
}
break;
- case PTHREAD_MUTEX_DEFAULT:
case PTHREAD_MUTEX_ERRORCHECK:
if (pthread_equal(mx->ownerThread, self))
{
@@ -862,6 +861,7 @@ pthread_mutex_lock(pthread_mutex_t *mutex)
ptw32_EnterCriticalSection(&mx->cs);
}
break;
+ case PTHREAD_MUTEX_DEFAULT:
case PTHREAD_MUTEX_RECURSIVE:
ptw32_EnterCriticalSection(&mx->cs);
break;