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:
5b5b3ce
)
[project @ 2004-02-26 16:31:44 by simonmar]
author
simonmar
<unknown>
Thu, 26 Feb 2004 16:31:44 +0000
(16:31 +0000)
committer
simonmar
<unknown>
Thu, 26 Feb 2004 16:31:44 +0000
(16:31 +0000)
Avoid signalling thread_ready_cond if rts_n_waiting_tasks==0.
ghc/rts/Capability.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Capability.c
b/ghc/rts/Capability.c
index
18ef4df
..
c99cf05
100644
(file)
--- a/
ghc/rts/Capability.c
+++ b/
ghc/rts/Capability.c
@@
-206,7
+206,9
@@
releaseCapability( Capability* cap UNUSED_IF_NOT_SMP )
rts_n_free_capabilities = 1;
#endif
// Signal that a capability is available
- signalCondition(&thread_ready_cond);
+ if (rts_n_waiting_tasks > 0) {
+ signalCondition(&thread_ready_cond);
+ }
startSchedulerTaskIfNecessary();
IF_DEBUG(scheduler, sched_belch("worker: released capability"));
}