summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-08-29 10:48:11 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-08-29 10:48:11 +0000
commitb09ab92b65983635c68c8944631b1d53e9b71e42 (patch)
treebf0e6f512ca4431f0963bf99bcd9c1c68dabb92f /rts/win32
parent7605f65c7665bf1f58438d4eaf0ce9d56878a1c0 (diff)
downloadhaskell-b09ab92b65983635c68c8944631b1d53e9b71e42.tar.gz
Windows: remove the {Enter,Leave}CricialSection wrappers
The C-- parser was missing the "stdcall" calling convention for foreign calls, but once added we can call {Enter,Leave}CricialSection directly.
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/OSThreads.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c
index 13a3666b63..ed5c968cf1 100644
--- a/rts/win32/OSThreads.c
+++ b/rts/win32/OSThreads.c
@@ -232,14 +232,6 @@ forkOS_createThread ( HsStablePtr entry )
(unsigned*)&pId) == 0);
}
-void CCallEnterCriticalSection(LPCRITICAL_SECTION s) {
- EnterCriticalSection(s);
-}
-
-void CCallLeaveCriticalSection(LPCRITICAL_SECTION s) {
- LeaveCriticalSection(s);
-}
-
#else /* !defined(THREADED_RTS) */
int