3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-04-02 17:40:34 -07:00
parent ff6d703c05
commit 6360798a53
2 changed files with 15 additions and 7 deletions

View file

@ -71,6 +71,11 @@ public:
m_suspend = r.m_suspend;
r.m_suspend = true;
}
scoped_suspend_rlimit(reslimit& r, bool do_suspend): m_limit(r) {
m_suspend = r.m_suspend;
r.m_suspend |= do_suspend;
}
~scoped_suspend_rlimit() {
m_limit.m_suspend = m_suspend;
}