diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-25 13:35:53 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-25 13:35:53 +0200 |
commit | ddfb1f1ff366e57282ea144e24b1d86fcbdc31be (patch) | |
tree | 7fa847ae5ca0a4182bd56ec9045c26090c221d32 | |
parent | 5db4a3e8b0a7c5b5270b014d73c52185fec71b52 (diff) | |
download | nextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.tar.gz nextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.tar.bz2 nextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.zip |
Fix BaseCtx::unlock()
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | common/nextpnr.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |