[project @ 2003-06-24 08:49:55 by stolz]
[ghc-hetmet.git] / ghc / rts / Select.c
index e698d8e..70e0a03 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Select.c,v 1.25 2003/02/22 04:51:57 sof Exp $
+ * $Id: Select.c,v 1.28 2003/04/01 15:05:22 sof Exp $
  *
  * (c) The GHC Team 1995-2002
  *
 /* #include "PosixSource.h" */
 
 #include "Rts.h"
-#ifndef mingw32_TARGET_OS
-/* to the end */
-
 #include "Schedule.h"
 #include "RtsUtils.h"
 #include "RtsFlags.h"
 #include "Timer.h"
+#include "Itimer.h"
 #include "Signals.h"
 #include "Capability.h"
 
@@ -234,12 +232,14 @@ awaitEvent(rtsBool wait)
           * we could block for a long time before the signal is
           * serviced.
           */
+#if defined(RTS_USER_SIGNALS)
          if (signals_pending()) {
              RELEASE_LOCK(&sched_mutex); /* ToDo: kill */
              startSignalHandlers();
              ACQUIRE_LOCK(&sched_mutex);
              return; /* still hold the lock */
          }
+#endif
 
          /* we were interrupted, return to the scheduler immediately.
           */
@@ -348,5 +348,3 @@ wakeBlockedWorkerThread()
     }
 }
 #endif
-
-#endif /* !mingw_TARGET_OS */