X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/347996b4a10c4e8579080692afa60e0afb88b60a..1bdbe2db10271b1d1948e1ee0382abcfe622a991:/src/mc/ModelChecker.hpp diff --git a/src/mc/ModelChecker.hpp b/src/mc/ModelChecker.hpp index a90e1b4137..7babe6a6ea 100644 --- a/src/mc/ModelChecker.hpp +++ b/src/mc/ModelChecker.hpp @@ -28,22 +28,20 @@ namespace mc { /** State of the model-checker (global variables for the model checker) */ class ModelChecker { - pid_t pid_; - int socket_; struct pollfd fds_[2]; /** String pool for host names */ - // TODO, use std::unordered_set with heterogeneous comparison lookup (C++14) - xbt_dict_t /* */ hostnames_; + // TODO, use std::set with heterogeneous comparison lookup (C++14)? + xbt_dict_t /* */ hostnames_; // This is the parent snapshot of the current state: PageStore page_store_; std::unique_ptr process_; public: - mc_snapshot_t parent_snapshot_; + simgrid::mc::Snapshot* parent_snapshot_; public: ModelChecker(ModelChecker const&) = delete; ModelChecker& operator=(ModelChecker const&) = delete; - ModelChecker(pid_t pid, int socket); + ModelChecker(std::unique_ptr process); ~ModelChecker(); Process& process() @@ -62,7 +60,6 @@ public: } void start(); - void init_process(); void shutdown(); void resume(simgrid::mc::Process& process); void loop(); @@ -73,6 +70,7 @@ public: { mc_model_checker->wait_client(mc_model_checker->process()); } + void exit(int status); private: void setup_ignore(); bool handle_message(char* buffer, ssize_t size);