mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
fix openmp nested critical section
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
This commit is contained in:
parent
d8dc86f558
commit
c36df1c34a
|
@ -656,13 +656,12 @@ public:
|
|||
}
|
||||
|
||||
virtual void set_cancel(bool f) {
|
||||
m_nl_tac->set_cancel(f);
|
||||
if (f) {
|
||||
m_nl_tac->cancel();
|
||||
m_solver->cancel();
|
||||
}
|
||||
else {
|
||||
m_solver->reset_cancel();
|
||||
m_nl_tac->reset_cancel();
|
||||
}
|
||||
m_cancel = f;
|
||||
}
|
||||
|
|
|
@ -95,10 +95,11 @@ public:
|
|||
|
||||
// translate tactic to the given manager
|
||||
virtual tactic * translate(ast_manager & m) = 0;
|
||||
private:
|
||||
protected:
|
||||
friend class nary_tactical;
|
||||
friend class binary_tactical;
|
||||
friend class unary_tactical;
|
||||
friend class nl_purify_tactic;
|
||||
|
||||
virtual void set_cancel(bool f) {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue