From ddfb1f1ff366e57282ea144e24b1d86fcbdc31be Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 25 Jul 2018 13:35:53 +0200 Subject: Fix BaseCtx::unlock() Signed-off-by: Clifford Wolf --- common/nextpnr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/nextpnr.h b/common/nextpnr.h index f391469c..f7f1cebc 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -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(); } -- cgit v1.2.3