From 32e655d0afcc01d7a04aca0f1c5be39140e21335 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 29 Jun 2020 16:39:31 +0100 Subject: [PATCH] placer1: Unlock even if placement fails Prevents a hang during routing when using --force Fixes #462 Signed-off-by: David Shah --- common/placer1.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/placer1.cc b/common/placer1.cc index 1ba50e28..92f42ba7 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -1256,6 +1256,7 @@ bool placer1(Context *ctx, Placer1Cfg cfg) #ifndef NDEBUG ctx->check(); #endif + ctx->unlock(); return false; } } @@ -1276,6 +1277,7 @@ bool placer1_refine(Context *ctx, Placer1Cfg cfg) #ifndef NDEBUG ctx->check(); #endif + ctx->unlock(); return false; } }