Skip to content

Commit 1eceb12

Browse files
committed
Use method for blocking thread instead of calling into GenMC directly.
1 parent d6cd31e commit 1eceb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genmc-sys/cpp/src/MiriInterface/Mutex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ auto MiriGenmcShim::handle_mutex_lock(ThreadId thread_id, uint64_t address, uint
8080
// We did not acquire the mutex, so we tell GenMC to block the thread until we can acquire
8181
// it. GenMC determines this based on the annotation we pass with the load further up in
8282
// this function, namely when that load will read a value other than `MUTEX_LOCKED`.
83-
GenMCDriver::handleAssume(inc_pos(thread_id), AssumeType::Spinloop);
83+
this->handle_assume_block(thread_id, AssumeType::Spinloop);
8484
}
8585
return MutexLockResultExt::ok(is_lock_acquired);
8686
}

0 commit comments

Comments
 (0)