placer1: Unlock even if placement fails
Prevents a hang during routing when using --force Fixes #462 Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
929a1cc7e4
commit
32e655d0af
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user