X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..831d719023e7a0af690f54db87a5e6ba4802ede3:/src/mc/remote/Client.hpp?ds=sidebyside diff --git a/src/mc/remote/Client.hpp b/src/mc/remote/Client.hpp index 6d2dadc17c..7770b65324 100644 --- a/src/mc/remote/Client.hpp +++ b/src/mc/remote/Client.hpp @@ -30,12 +30,21 @@ class XBT_PUBLIC() Client { private: bool active_ = false; Channel channel_; - static std::unique_ptr client_; + static std::unique_ptr instance_; public: Client(); explicit Client(int fd) : active_(true), channel_(fd) {} void handleMessages(); + +private: + void handleDeadlockCheck(mc_message_t* msg); + void handleContinue(mc_message_t* msg); + void handleSimcall(s_mc_message_simcall_handle_t* message); + void handleRestore(s_mc_message_restore_t* msg); + void handleActorEnabled(s_mc_message_actor_enabled_t* msg); + +public: Channel const& getChannel() const { return channel_; } Channel& getChannel() { return channel_; } void mainLoop(); @@ -51,7 +60,7 @@ public: // Singleton :/ // TODO, remove the singleton antipattern. static Client* initialize(); - static Client* get() { return client_.get(); } + static Client* get() { return instance_.get(); } }; } }