Merge pull request #267 from noopwafel/lock-for-timing
timing_opt: Add locks to optimise()
This commit is contained in:
commit
037e13b883
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user