diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-01 23:45:52 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-01 23:45:52 +0100 |
commit | 8bc5afb4114e94e31efc7534a0e51952e551a57f (patch) | |
tree | 5fd6c1f36e29b79a11a0e04ea6577bded11468d7 /problem.hpp | |
parent | 97366c03e6a9fc9cc98455fd6dd84cdd0d8197f3 (diff) | |
parent | c119262d3e0d4a706efcd4a68bbe5f8102826fcf (diff) | |
download | Robotique-Projet-8bc5afb4114e94e31efc7534a0e51952e551a57f.tar.gz Robotique-Projet-8bc5afb4114e94e31efc7534a0e51952e551a57f.zip |
Merge branch 'master' of https://github.com/Alexis211/Robotique
Conflicts:
problem.hpp
Diffstat (limited to 'problem.hpp')
-rw-r--r-- | problem.hpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/problem.hpp b/problem.hpp index 2fe70b1..14ba475 100644 --- a/problem.hpp +++ b/problem.hpp @@ -79,10 +79,10 @@ struct hilare_a_mvt { double ds; // longueur par double length(); // length of a movement - + bool intersects(const obstacle &o) const; // intersects an obstacle ? - bool intersects(const problem &p) const; // intersects any obstacle on the map ? + bool intersects(const problem &p) const; // intersects any obstacle on the map ? }; struct solution { @@ -113,28 +113,28 @@ class solver { private: - sf::Mutex _d_lock; - solver_internal _d; - problem _p; + sf::Mutex _d_lock; + solver_internal _d; + problem _p; + + bool _please_stop; + bool _running; + bool _done; + solution _s; - bool _please_stop; - bool _running; - bool _done; - solution _s; - - sf::Thread _worker; + sf::Thread _worker; public: - solver(); + solver(); - void start(const problem &p); + void start(const problem &p); - void run(); // worker thread + void run(); // worker thread - bool finished(); - solution get_solution(); + bool finished(); + solution get_solution(); - solver_internal peek_internal(); + solver_internal peek_internal(); }; |