mirror of
https://github.com/Z3Prover/z3
synced 2026-06-30 04:18:53 +00:00
fix scoping for functions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
96092b196c
commit
84a3c8789f
1 changed files with 7 additions and 8 deletions
|
|
@ -1926,18 +1926,17 @@ public:
|
||||||
/* Launch threads. */
|
/* Launch threads. */
|
||||||
vector<std::thread> threads;
|
vector<std::thread> threads;
|
||||||
for (auto *w : m_workers)
|
for (auto *w : m_workers)
|
||||||
threads.push_back(std::thread([&]() {
|
threads.push_back(std::thread([w, &safe_run]() {
|
||||||
safe_run([w]() -> void { w->run(); }, w->limit());
|
safe_run([w]() { w->run(); }, w->limit());
|
||||||
}));
|
}));
|
||||||
if (m_core_minimizer_worker)
|
if (m_core_minimizer_worker)
|
||||||
threads.push_back(std::thread([&]() {
|
threads.push_back(std::thread([this, &safe_run]() {
|
||||||
safe_run([this]() -> void { m_core_minimizer_worker->run(); }, m_core_minimizer_worker->limit());
|
safe_run([this]() { m_core_minimizer_worker->run(); }, m_core_minimizer_worker->limit());
|
||||||
}));
|
}));
|
||||||
for (auto* w : m_global_backbones_workers)
|
for (auto* w : m_global_backbones_workers)
|
||||||
threads.push_back(std::thread([&]() {
|
threads.push_back(std::thread([w, &safe_run]() {
|
||||||
safe_run([w]() -> void {
|
safe_run([w]() { w->run(); }, w->limit());
|
||||||
w->run(); }, w->limit());
|
}));
|
||||||
}));
|
|
||||||
|
|
||||||
for (auto& t : threads)
|
for (auto& t : threads)
|
||||||
t.join();
|
t.join();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue