summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2004-10-08 12:03:18 +0000
committerrpj <rpj>2004-10-08 12:03:18 +0000
commit9da8fdcb33373b4b2e1de2a8b7af3ed4b5811245 (patch)
tree1e232efaa8472fbf0d61816995cb4fddc7e9b5ed /implement.h
parentb0cf9efa6afeb8a7dbddf124dae173a2d633c801 (diff)
Mutex speedups
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h11
1 files changed, 9 insertions, 2 deletions
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 <process.h>
#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:
*