summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/global.c b/global.c
index a094459..128a17b 100644
--- a/global.c
+++ b/global.c
@@ -32,6 +32,11 @@ int ptw32_processInitialized = FALSE;
pthread_key_t ptw32_selfThreadKey = NULL;
pthread_key_t ptw32_cleanupKey = NULL;
+/*
+ * Function pointer to TryEnterCriticalSection if it exists; otherwise NULL
+ */
+BOOL (WINAPI *ptw32_try_enter_critical_section)(LPCRITICAL_SECTION) = NULL;
+
/*
* Global lock for testing internal state of PTHREAD_MUTEX_INITIALIZER
* created mutexes.