projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5244f53
)
tmp: usleep(1) during anyWork() if no work
author
Simon Marlow
<simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:40:23 +0000
(21:40 +0000)
committer
Simon Marlow
<simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:40:23 +0000
(21:40 +0000)
rts/sm/Scav.c
patch
|
blob
|
history
diff --git
a/rts/sm/Scav.c
b/rts/sm/Scav.c
index
4ba80c4
..
c284dee
100644
(file)
--- a/
rts/sm/Scav.c
+++ b/
rts/sm/Scav.c
@@
-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;
}