[project @ 2003-03-04 01:29:25 by sof]
authorsof <unknown>
Tue, 4 Mar 2003 01:29:25 +0000 (01:29 +0000)
committersof <unknown>
Tue, 4 Mar 2003 01:29:25 +0000 (01:29 +0000)
win32/Ticker.c:startTicker(),
win32/IOManager.c:NewIOWorkerThread():
  pass in non-NULL pointer to _beginthreadex()'s outgoing thread ID arg.
  Needed to work with Win9x's impl of CreateThread().

ghc/rts/win32/IOManager.c
ghc/rts/win32/Ticker.c

index 85bfcb0..ce3ee99 100644 (file)
@@ -126,12 +126,13 @@ static
 BOOL
 NewIOWorkerThread(IOManagerState* iom)
 {
+  unsigned threadId;
   return ( 0 != _beginthreadex(NULL,
                               0,
                               IOWorkerProc,
                               (LPVOID)iom,
                               0,
-                              NULL) );
+                              &threadId) );
 }
 
 BOOL
index bfc89c0..194ec8d 100644 (file)
@@ -66,7 +66,7 @@ TimerProc(PVOID param)
 int
 startTicker(nat ms)
 {
-                           
+  unsigned threadId;
   /* 'hStopEvent' is a manual-reset event that's signalled upon
    * shutdown of timer service (=> timer thread.)
    */
@@ -82,7 +82,7 @@ startTicker(nat ms)
                               TimerProc,
                               (LPVOID)ms,
                               0,
-                              NULL) );
+                              &threadId) );
 }
 
 int