diff options
author | Alyssa Milburn <amilburn@zall.org> | 2019-04-16 15:57:10 +0200 |
---|---|---|
committer | Alyssa Milburn <amilburn@zall.org> | 2019-04-16 16:03:12 +0200 |
commit | c1cc356bb0790d9e55194bd4b9a0cd2fa796d7b9 (patch) | |
tree | f06bfebf31525a8994d578ffa01bdbfc91b28579 | |
parent | 250c914763b19fac6fc0d44bc4e6d1d6c3dd3d10 (diff) | |
download | nextpnr-c1cc356bb0790d9e55194bd4b9a0cd2fa796d7b9.tar.gz nextpnr-c1cc356bb0790d9e55194bd4b9a0cd2fa796d7b9.tar.bz2 nextpnr-c1cc356bb0790d9e55194bd4b9a0cd2fa796d7b9.zip |
timing_opt: Add locks to optimise()
Signed-off-by: Alyssa Milburn <amilburn@zall.org>
-rw-r--r-- | common/timing_opt.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/timing_opt.cc b/common/timing_opt.cc index c0968db7..898222ab 100644 --- a/common/timing_opt.cc +++ b/common/timing_opt.cc @@ -84,6 +84,7 @@ class TimingOptimiser bool optimise() { log_info("Running timing-driven placement optimisation...\n"); + ctx->lock(); if (ctx->verbose) timing_analysis(ctx, false, true, false, false); for (int i = 0; i < 30; i++) { @@ -96,6 +97,7 @@ class TimingOptimiser if (ctx->verbose) timing_analysis(ctx, false, true, false, false); } + ctx->unlock(); return true; } |