changeset 30598:a9eac13b820a

Add a InitializeCriticalSectionAndSpinCount function.
author reimar
date Thu, 18 Feb 2010 20:24:52 +0000
parents 0dbb798e67b0
children 7c1fea45bfc8
files loader/win32.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Thu Feb 18 20:23:05 2010 +0000
+++ b/loader/win32.c	Thu Feb 18 20:24:52 2010 +0000
@@ -1348,6 +1348,11 @@
     return;
 }
 
+static void WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
+{
+    expInitializeCriticalSection(c);
+}
+
 static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)
 {
 #ifdef CRITSECS_NEWTYPE
@@ -4984,6 +4989,7 @@
     FF(VirtualAlloc, -1)
     FF(VirtualFree, -1)
     FF(InitializeCriticalSection, -1)
+    FF(InitializeCriticalSectionAndSpinCount, -1)
     FF(EnterCriticalSection, -1)
     FF(LeaveCriticalSection, -1)
     FF(DeleteCriticalSection, -1)