diff options
author | rpj <rpj> | 2000-09-13 01:21:11 +0000 |
---|---|---|
committer | rpj <rpj> | 2000-09-13 01:21:11 +0000 |
commit | 548fc29a8cc3fd016eba997facc9566af8fd2d75 (patch) | |
tree | 96e67d9961dcd050737fa63f27e390ffec67ac2c /mutex.c | |
parent | 63c486d6444d718e6fe5d785821874739e0f50f7 (diff) |
2000-09-13 Ross Johnson <rpj@setup1.ise.canberra.edu.au>
* mutex.c (pthread_mutex_init): Call
TryEnterCriticalSection through the pointer
rather than directly so that the dll can load
on Windows versions that can't resolve the
function, eg. Windows 95
- "Jef Gearhart" <jgearhart@tpssys.com>
Diffstat (limited to 'mutex.c')
-rw-r--r-- | mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) * Check that it works ok - since InitializeCriticalSection doesn't * return success or failure. */ - if (TryEnterCriticalSection(&mx->cs)) + if ((*ptw32_try_enter_critical_section)(&mx->cs)) { LeaveCriticalSection(&mx->cs); } |