3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 04:01:22 +00:00

cleanup deprecated critical sections, fix cancellation for par_or_else tactic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-12-12 09:43:00 -08:00
parent c97db1722d
commit 2a051719d8
50 changed files with 105 additions and 276 deletions

View file

@ -400,11 +400,8 @@ public:
virtual void cleanup() {
expr_set* d = alloc(expr_set);
ptr_vector<expr>* todo = alloc(ptr_vector<expr>);
#pragma omp critical (tactic_cancel)
{
std::swap(m_01s, d);
std::swap(m_todo, todo);
}
std::swap(m_01s, d);
std::swap(m_todo, todo);
dealloc(d);
dealloc(todo);
}