When linking a shared library with --make, always do the link step
[ghc-hetmet.git] / rts / win32 / OSThreads.c
index 13a3666..c18bab2 100644 (file)
@@ -232,12 +232,24 @@ forkOS_createThread ( HsStablePtr entry )
                           (unsigned*)&pId) == 0);
 }
 
-void CCallEnterCriticalSection(LPCRITICAL_SECTION s) {
-    EnterCriticalSection(s);
+nat
+getNumberOfProcessors (void)
+{
+    static nat nproc = 0;
+
+    if (nproc == 0) {
+        SYSTEM_INFO si;
+        GetSystemInfo(&si);
+        nproc = si.dwNumberOfProcessors;
+    }
+
+    return nproc;
 }
 
-void CCallLeaveCriticalSection(LPCRITICAL_SECTION s) {
-    LeaveCriticalSection(s);
+void
+setThreadAffinity (nat n STG_UNUSED, nat m STG_UNUSED)
+{
+    /* ToDo */
 }
 
 #else /* !defined(THREADED_RTS) */