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
|
#ifndef NDEBUG
|
||||||
ctx->check();
|
ctx->check();
|
||||||
#endif
|
#endif
|
||||||
|
ctx->unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1276,6 +1277,7 @@ bool placer1_refine(Context *ctx, Placer1Cfg cfg)
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
ctx->check();
|
ctx->check();
|
||||||
#endif
|
#endif
|
||||||
|
ctx->unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user