mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
replace remaining volatiles with atomic<>
volatiles are now deprecated in recent C++
This commit is contained in:
parent
a4aa87b6c9
commit
0213af3c61
7 changed files with 19 additions and 11 deletions
|
@ -100,11 +100,9 @@ namespace sat {
|
|||
|
||||
void parallel::init_solvers(solver& s, unsigned num_extra_solvers) {
|
||||
unsigned num_threads = num_extra_solvers + 1;
|
||||
m_solvers.resize(num_extra_solvers);
|
||||
m_solvers.init(num_extra_solvers);
|
||||
m_limits.init(num_extra_solvers);
|
||||
symbol saved_phase = s.m_params.get_sym("phase", symbol("caching"));
|
||||
for (unsigned i = 0; i < num_extra_solvers; ++i) {
|
||||
m_limits.push_back(reslimit());
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < num_extra_solvers; ++i) {
|
||||
s.m_params.set_uint("random_seed", s.m_rand());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue