Skip to content
Snippets Groups Projects
Commit 0e4a8d37 authored by Régis Blanc's avatar Régis Blanc
Browse files

tried a solution to the halt-before-solve problem, didn't work

parent cc171877
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,25 @@ class ParallelSolver(reporter: Reporter, solvers: Solver*) extends Solver(report
case class Result(res: Option[Boolean])
class SolverRunner(s: Solver) extends Actor {
/*
val that = this
val worker = new Actor {
def act(): Unit = {
while(true) {
receive {
case Solve(expr) => {
reporter.info("Starting solver " + s.shortDescription)
val res = s.solve(expr)
that ! Result(res)
reporter.info("Ending solver " + s.shortDescription)
}
}
}
}
}
*/
def act(): Unit = {
while(true) {
receive {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment