mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 01:16:15 +00:00
rlimit mux
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f0f37411a2
commit
7c1e935bc2
2 changed files with 1 additions and 2 deletions
|
@ -87,7 +87,6 @@ void reslimit::cancel() {
|
||||||
set_cancel(m_cancel+1);
|
set_cancel(m_cancel+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void reslimit::reset_cancel() {
|
void reslimit::reset_cancel() {
|
||||||
lock_guard lock(g_rlimit_mux);
|
lock_guard lock(g_rlimit_mux);
|
||||||
set_cancel(0);
|
set_cancel(0);
|
||||||
|
@ -98,7 +97,6 @@ void reslimit::inc_cancel() {
|
||||||
set_cancel(m_cancel+1);
|
set_cancel(m_cancel+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void reslimit::dec_cancel() {
|
void reslimit::dec_cancel() {
|
||||||
lock_guard lock(g_rlimit_mux);
|
lock_guard lock(g_rlimit_mux);
|
||||||
if (m_cancel > 0) {
|
if (m_cancel > 0) {
|
||||||
|
|
|
@ -20,6 +20,7 @@ Revision History:
|
||||||
|
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
|
|
||||||
|
|
||||||
class reslimit {
|
class reslimit {
|
||||||
volatile unsigned m_cancel;
|
volatile unsigned m_cancel;
|
||||||
bool m_suspend;
|
bool m_suspend;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue