1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-29 05:11:33 +00:00

Fix BaseCtx::unlock()

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf
2018-07-25 13:35:53 +02:00
parent 5db4a3e8b0
commit ddfb1f1ff3

View File

@@ -392,7 +392,7 @@ struct BaseCtx
void unlock(void)
{
NPNR_ASSERT(std::this_thread::get_id() != mutex_owner);
NPNR_ASSERT(std::this_thread::get_id() == mutex_owner);
mutex.unlock();
}