tmp: usleep(1) during anyWork() if no work
authorSimon Marlow <simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:40:23 +0000 (21:40 +0000)
committerSimon Marlow <simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:40:23 +0000 (21:40 +0000)
rts/sm/Scav.c

index 4ba80c4..c284dee 100644 (file)
@@ -11,6 +11,8 @@
  *
  * ---------------------------------------------------------------------------*/
 
+#include <unistd.h>
+
 #include "Rts.h"
 #include "RtsFlags.h"
 #include "Storage.h"
@@ -1583,6 +1585,7 @@ any_work (void)
     }
 
     gct->no_work++;
+    usleep(1);
 
     return rtsFalse;
 }