Commit f6feb336 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-11-03 16:47:45 by simonmar]

adjust type of startSignalHandlers() to make changes to Win32 version
parent 71c492fc
...@@ -345,7 +345,7 @@ stg_sig_install(int sig, int spi, StgStablePtr *handler, void *mask) ...@@ -345,7 +345,7 @@ stg_sig_install(int sig, int spi, StgStablePtr *handler, void *mask)
#if !defined(THREADED_RTS) #if !defined(THREADED_RTS)
void void
startSignalHandlers(void) startSignalHandlers(Capability *cap)
{ {
blockUserSignals(); blockUserSignals();
...@@ -353,9 +353,8 @@ startSignalHandlers(void) ...@@ -353,9 +353,8 @@ startSignalHandlers(void)
next_pending_handler--; next_pending_handler--;
scheduleThread ( scheduleThread (cap,
&MainCapability, createIOThread(cap,
createIOThread(&MainCapability,
RtsFlags.GcFlags.initialStkSize, RtsFlags.GcFlags.initialStkSize,
(StgClosure *) *next_pending_handler)); (StgClosure *) *next_pending_handler));
} }
......
...@@ -16,7 +16,8 @@ extern rtsBool anyUserHandlers(void); ...@@ -16,7 +16,8 @@ extern rtsBool anyUserHandlers(void);
extern StgPtr pending_handler_buf[]; extern StgPtr pending_handler_buf[];
extern StgPtr *next_pending_handler; extern StgPtr *next_pending_handler;
#define signals_pending() (next_pending_handler != pending_handler_buf) #define signals_pending() (next_pending_handler != pending_handler_buf)
void startSignalHandlers(void); void startSignalHandlers(Capability *cap);
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment