3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-07 14:43:23 +00:00

remove std::mutex, replace by util/mutex.h in api_solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-05-18 19:15:11 -07:00
parent 10edee48f3
commit 55225824ee
2 changed files with 4 additions and 3 deletions

View file

@ -113,12 +113,12 @@ extern "C" {
}
void Z3_solver_ref::set_eh(event_handler* eh) {
std::lock_guard<std::mutex> lock(m_mux);
lock_guard lock(m_mux);
m_eh = eh;
}
void Z3_solver_ref::set_cancel() {
std::lock_guard<std::mutex> lock(m_mux);
lock_guard lock(m_mux);
if (m_eh) (*m_eh)(API_INTERRUPT_EH_CALLER);
}