Merge pull request #267 from noopwafel/lock-for-timing

timing_opt: Add locks to optimise()
This commit is contained in:
David Shah 2019-04-16 16:29:26 +01:00 committed by GitHub
commit 037e13b883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}