1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-15 12:26:49 +00:00

router: release lock on failure to unblock UI

This commit is contained in:
Sergiusz Bazanski
2018-08-01 11:53:52 +01:00
parent 1996f8c2d7
commit f041f01895

View File

@@ -588,6 +588,7 @@ bool router1(Context *ctx)
if (jobQueue.empty()) {
log_info("found no unrouted source-sink pairs. no routing necessary.\n");
ctx->unlock();
return true;
}
@@ -602,6 +603,7 @@ bool router1(Context *ctx)
#ifndef NDEBUG
ctx->check();
#endif
ctx->unlock();
return false;
}
@@ -807,6 +809,7 @@ bool router1(Context *ctx)
}
log_info("Checksum: 0x%08x\n", ctx->checksum());
ctx->check();
ctx->unlock();
return false;
}
#endif