mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +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:
parent
c97db1722d
commit
2a051719d8
50 changed files with 105 additions and 276 deletions
|
@ -167,18 +167,14 @@ public:
|
|||
if (o.m_callback) {
|
||||
new_ctx->set_progress_callback(o.m_callback);
|
||||
}
|
||||
#pragma omp critical (as_st_solver)
|
||||
{
|
||||
o.m_ctx = new_ctx;
|
||||
}
|
||||
o.m_ctx = new_ctx;
|
||||
|
||||
}
|
||||
|
||||
~scoped_init_ctx() {
|
||||
smt::kernel * d = m_owner.m_ctx;
|
||||
#pragma omp critical (as_st_cancel)
|
||||
{
|
||||
m_owner.m_ctx = 0;
|
||||
}
|
||||
m_owner.m_ctx = 0;
|
||||
|
||||
if (d)
|
||||
dealloc(d);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue