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:
05f1dd6
)
[project @ 1997-05-18 04:24:53 by sof]
author
sof
<unknown>
Sun, 18 May 1997 04:24:53 +0000
(
04:24
+0000)
committer
sof
<unknown>
Sun, 18 May 1997 04:24:53 +0000
(
04:24
+0000)
QSem bug fix
ghc/lib/concurrent/Semaphore.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/concurrent/Semaphore.lhs
b/ghc/lib/concurrent/Semaphore.lhs
index
f3f5429
..
363c936
100644
(file)
--- a/
ghc/lib/concurrent/Semaphore.lhs
+++ b/
ghc/lib/concurrent/Semaphore.lhs
@@
-103,7
+103,7
@@
signalQSemN (QSemN sem) n
where
free avail [] = return (avail,[])
free avail ((req,block):blocked) =
- if avail > req then
+ if avail >= req then
putMVar block () >>
free (avail-req) blocked
else