3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-10 09:15:47 +00:00

Merge branch 'master' into ctrl-c-races

This commit is contained in:
Nikolaj Bjorner 2025-04-19 13:58:13 -07:00 committed by GitHub
commit 78c5800a99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 1351 additions and 1207 deletions

View file

@ -21,6 +21,7 @@ Revision History:
#include <cstring>
#include <mutex>
#include "util/scoped_ctrl_c.h"
#include "util/gparams.h"
#ifdef _WINDOWS
#define USE_SIGNAL
@ -105,7 +106,10 @@ scoped_ctrl_c::scoped_ctrl_c(event_handler & eh, bool once, bool enabled):
m_cancel_eh(eh),
m_first(true),
m_once(once),
m_enabled(enabled) {
m_enabled(enabled),
m_old_scoped_ctrl_c(g_obj) {
if (gparams::get_value("ctrl_c") == "false")
m_enabled = false;
if (m_enabled) {
signal_lock();
active_contexts.push_back(this);