mirror of
https://github.com/Z3Prover/z3
synced 2026-07-04 22:36:10 +00:00
avoid double cancel
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5b307545e6
commit
38a8644ae3
1 changed files with 2 additions and 0 deletions
|
|
@ -482,6 +482,8 @@ class parallel_solver {
|
||||||
|
|
||||||
void set_cancel() {
|
void set_cancel() {
|
||||||
std::scoped_lock lock(mux);
|
std::scoped_lock lock(mux);
|
||||||
|
if (m_state != state::is_running)
|
||||||
|
return;
|
||||||
cancel_workers_unlocked();
|
cancel_workers_unlocked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue