projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add closeMutex and use it on clean up
[ghc-hetmet.git]
/
rts
/
Capability.c
diff --git
a/rts/Capability.c
b/rts/Capability.c
index
2384262
..
e384e1e
100644
(file)
--- a/
rts/Capability.c
+++ b/
rts/Capability.c
@@
-671,6
+671,9
@@
shutdownCapability (Capability *cap, Task *task)
}
// we now have the Capability, its run queue and spare workers
// list are both empty.
+
+ // We end up here only in THREADED_RTS
+ closeMutex(&cap->lock);
}
/* ----------------------------------------------------------------------------