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();
}