From 9da8fdcb33373b4b2e1de2a8b7af3ed4b5811245 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 8 Oct 2004 12:03:18 +0000 Subject: Mutex speedups --- implement.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'implement.h') diff --git a/implement.h b/implement.h index 400598c..2e320bb 100644 --- a/implement.h +++ b/implement.h @@ -192,8 +192,6 @@ struct pthread_mutex_t_ pthread_t ownerThread; sem_t wait_sema; /* Mutex release notification to waiting threads. */ - CRITICAL_SECTION wait_cs; /* Serialise lock_idx decrement after mutex - timeout. */ }; struct pthread_mutexattr_t_ @@ -574,6 +572,15 @@ extern "C" # include #endif + +/* + * When not building the inlined version of the dll. + */ +#ifndef PTW32_INTERLOCKED_COMPARE_EXCHANGE +#define PTW32_INTERLOCKED_COMPARE_EXCHANGE ptw32_interlocked_compare_exchange +#endif + + /* * Check for old and new versions of cygwin. See the FAQ file: * -- cgit v1.2.3