Skip to content

Commit 4737575

Browse files
committed
Correcting the MsSolver checking code of an result of another thread
1 parent 1162914 commit 4737575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MsSolver.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ void MsSolver::maxsat_solve(solve_Command cmd)
733733
return;
734734
}
735735
}
736-
if (opt_scip_parallel && scip_solver.asynch_result.valid() &&
736+
if (opt_scip_parallel && scip_solver.asynch_result.valid() &&
737+
scip_solver.asynch_result.wait_for(std::chrono::milliseconds(1)) == std::future_status::ready &&
737738
l_True == scip_solver.asynch_result.get()) break;
738739
#endif
739740
sat_conflicts.clear();

0 commit comments

Comments
 (0)