3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-19 07:06:28 +00:00

avoid spurious cancel

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-06-14 23:31:37 -07:00
parent e95f9757c9
commit dba826039d

View file

@ -1694,6 +1694,8 @@ namespace smt {
void parallel::batch_manager::set_canceled() {
std::scoped_lock lock(mux);
if (m_state != state::is_running)
return;
cancel_background_threads();
}