From 7a31ef49c345dfb39de7cd6d43eeb29c34129495 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 7 Feb 2001 08:45:46 +0000 Subject: Updates and minor corrections and changes. --- mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mutex.c') 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; -- cgit v1.2.3