提交 da9a4ad0 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Enabled compilation directory lock by default

上级 ef750931
......@@ -12,7 +12,7 @@ def get_lock():
get_lock.n_lock = 0
get_lock.lock_dir = os.path.join(compiledir.get_compiledir(), 'lock_dir')
if not hasattr(get_lock, 'lock_is_enabled'):
get_lock.lock_is_enabled = False # Disabled for now by default.
get_lock.lock_is_enabled = True
# Only really try to acquire the lock if we do not have it already.
if get_lock.lock_is_enabled and get_lock.n_lock == 0:
lock(get_lock.lock_dir, timeout = 60, verbosity = 10)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论