提交 8c4c0074 authored 作者: James Bergstra's avatar James Bergstra

added try/finally in OpWiseCLinker.make_all to release lock

上级 399c0721
......@@ -818,6 +818,7 @@ class OpWiseCLinker(link.LocalLinker):
# Acquire lock on compilation directory.
get_lock()
try:
env = self.env
order = env.toposort()
......@@ -895,6 +896,7 @@ class OpWiseCLinker(link.LocalLinker):
f.allow_gc = self.allow_gc
finally:
# Release lock on compilation directory.
release_lock()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论