Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Oct 10, 2023
1 parent e8e636c commit f3e9712
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/sat/sat_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Module Name:
sat_parallel.cpp
Abstract:
Abstract:
Utilities for parallel SAT solving.
Expand Down Expand Up @@ -260,15 +260,13 @@ namespace sat {

bool parallel::copy_solver(solver& s) {
bool copied = false;
{
lock_guard lock(m_mux);
m_consumer_ready = true;
if (m_solver_copy && s.m_clauses.size() > m_solver_copy->m_clauses.size()) {
s.copy(*m_solver_copy, true);
copied = true;
m_num_clauses = s.m_clauses.size();
}
}
lock_guard lock(m_mux);
m_consumer_ready = true;
if (m_solver_copy && s.m_clauses.size() > m_solver_copy->m_clauses.size()) {
s.copy(*m_solver_copy, true);
copied = true;
m_num_clauses = s.m_clauses.size();
}
return copied;
}

Expand Down

0 comments on commit f3e9712

Please sign in to comment.