aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-25 13:35:53 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-25 13:35:53 +0200
commitddfb1f1ff366e57282ea144e24b1d86fcbdc31be (patch)
tree7fa847ae5ca0a4182bd56ec9045c26090c221d32 /common/nextpnr.h
parent5db4a3e8b0a7c5b5270b014d73c52185fec71b52 (diff)
downloadnextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.tar.gz
nextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.tar.bz2
nextpnr-ddfb1f1ff366e57282ea144e24b1d86fcbdc31be.zip
Fix BaseCtx::unlock()
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h2
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();
}