Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
a2336415
Commit
a2336415
authored
Feb 09, 2009
by
Simon Marlow
Browse files
scheduleYield(): check the wakeup queue before yielding
parent
305b24aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Schedule.c
View file @
a2336415
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment