From 0337d817b128c648d97a79f42b303421b5b76386 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 7 Jan 2002 07:10:46 +0000 Subject: * mutex.c (pthread_mutex_init): Remove critical section calls. (pthread_mutex_destroy): Likewise. (pthread_mutex_unlock): Likewise. (pthread_mutex_trylock): Likewise; recursive mutexes now increment the lock count rather than return EBUSY; errorcheck mutexes return EDEADLCK rather than EBUSY. This behaviour is consistent with the Solaris pthreads implementation. * implement.h (pthread_mutex_t_): Remove critical section element - no longer needed. --- implement.h | 1 - 1 file changed, 1 deletion(-) (limited to 'implement.h') diff --git a/implement.h b/implement.h index 3f2690e..e07306b 100644 --- a/implement.h +++ b/implement.h @@ -161,7 +161,6 @@ struct pthread_mutex_t_ { int kind; pthread_t ownerThread; HANDLE wait_sema; - CRITICAL_SECTION try_lock_cs; }; struct pthread_mutexattr_t_ { -- cgit v1.2.3