From 4a30695c72d49a8d4a7c9dd7892456170eaa39d6 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 20 Feb 1999 02:56:35 +0000 Subject: Sat Feb 20 16:03:30 1999 Ross Johnson * dll.c (DLLMain): Expand TryEnterCriticalSection support test. * mutex.c (pthread_mutex_trylock): The check for _pthread_try_enter_critical_section == NULL should have been removed long ago. --- mutex.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mutex.c') diff --git a/mutex.c b/mutex.c index 2b28cec..578617d 100644 --- a/mutex.c +++ b/mutex.c @@ -513,12 +513,6 @@ pthread_mutex_trylock(pthread_mutex_t *mutex) return EINVAL; } - if (mutex->mutex == 0 && _pthread_try_enter_critical_section == NULL) - { - /* TryEnterCriticalSection does not exist in the OS; return ENOSYS. */ - return ENOSYS; - } - /* * We do a quick check to see if we need to do more work * to initialise a static mutex. We check 'staticinit' -- cgit v1.2.3