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:
305b24a
)
scheduleYield(): check the wakeup queue before yielding
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 9 Feb 2009 11:25:36 +0000
(11:25 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 9 Feb 2009 11:25:36 +0000
(11:25 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
978adb8
..
6c46c09
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-744,6
+744,7
@@
scheduleYield (Capability **pcap, Task *task)
// if we have work, and we don't need to give up the Capability, continue.
if (!shouldYieldCapability(cap,task) &&
(!emptyRunQueue(cap) ||
+ !emptyWakeupQueue(cap) ||
blackholes_need_checking ||
sched_state >= SCHED_INTERRUPTING))
return;