[project @ 1997-10-05 20:30:17 by sof]
authorsof <unknown>
Sun, 5 Oct 1997 20:30:17 +0000 (20:30 +0000)
committersof <unknown>
Sun, 5 Oct 1997 20:30:17 +0000 (20:30 +0000)
Removed CONCURRENT #ifdef protection; updated docs

ghc/runtime/hooks/NoRunnableThrds.lc

index c9b351c..4bb693e 100644 (file)
@@ -1,14 +1,19 @@
 
+Hook to invoke when there's nothing left on the runnable threads
+queue {\em and} we've got nothing to wait for. The value
+returned is the exit code to report back. 
+
+NOTE: This hook is really CONCURRENT specific, but we include
+it in the way-independent libHSclib.a.
 
 \begin{code}
-#ifdef CONCURRENT /* the whole thing! */
 #include "rtsdefs.h"
 
-void
+int
 NoRunnableThreadsHook (void)
 {
+    fflush(stdout);
     fprintf(stderr, "No runnable threads!\n");
+    return(EXIT_FAILURE);
 }
-#endif /* CONCURRENT */
-
 \end{code}