diff options
| author | thecharlesblake | 2018-03-08 14:46:59 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-03-08 14:46:59 +0000 |
| commit | 3def8c5c683ac48fdfe69f607fa54787093679ff (patch) | |
| tree | 8782467367ff9f99462e42437a851569c871ca04 /src/main/solver/solver.h | |
| parent | Add solvability code to main (diff) | |
| download | metasol-3def8c5c683ac48fdfe69f607fa54787093679ff.tar.gz metasol-3def8c5c683ac48fdfe69f607fa54787093679ff.zip | |
Fix strange segfault error
Diffstat (limited to 'src/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 80d4ef5..2a024ac 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -7,6 +7,7 @@ #include <string> #include <vector> +#include <atomic> #include "../game/global_cache.h" #include "../game/sol_rules.h" @@ -23,8 +24,9 @@ public: }; explicit solver(const game_state&); + ~solver(); - bool run(); + bool run(boost::optional<std::atomic<bool> &> = boost::none); void print_solution() const; int get_states_searched() const; const node& get_search_tree() const; |
