summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c6
1 files changed, 0 insertions, 6 deletions
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'