From 99a2262d61c20019b2a4ce5321df48a9d5d43864 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Mon, 1 Mar 2021 09:41:29 -0800 Subject: Use scope in router1/2 and placer1. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- common/placer_heap.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/placer_heap.cc') diff --git a/common/placer_heap.cc b/common/placer_heap.cc index cea862af..eb931a37 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -331,8 +331,6 @@ class HeAPPlacer return false; } - lock.unlock_early(); - auto endtt = std::chrono::high_resolution_clock::now(); log_info("HeAP Placer Time: %.02fs\n", std::chrono::duration(endtt - startt).count()); log_info(" of which solving equations: %.02fs\n", solve_time); @@ -340,6 +338,7 @@ class HeAPPlacer log_info(" of which strict legalisation: %.02fs\n", sl_time); ctx->check(); + lock.unlock_early(); if (!placer1_refine(ctx, Placer1Cfg(ctx))) { return false; -- cgit v1.2.3