X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1098e770381274687f9569b22b50dac4000e9ed4..f9df6a0ce7023e4e22d83bb6c50f27bd21fab329:/src/mc/Client.hpp diff --git a/src/mc/Client.hpp b/src/mc/Client.hpp index b4f95caa90..4f8071ecbe 100644 --- a/src/mc/Client.hpp +++ b/src/mc/Client.hpp @@ -22,6 +22,10 @@ namespace simgrid { namespace mc { +/** Model-checked-side of the communication protocol + * + * Send messages to the model-checker and handles message from it. + */ class XBT_PUBLIC() Client { private: bool active_ = false; @@ -29,11 +33,11 @@ private: static std::unique_ptr client_; public: Client(); - Client(int fd) : active_(true), channel_(fd) {} + explicit Client(int fd) : active_(true), channel_(fd) {} void handleMessages(); Channel const& getChannel() const { return channel_; } Channel& getChannel() { return channel_; } - void mainLoop(void); + void mainLoop(); void reportAssertionFailure(const char* description = nullptr); void ignoreMemory(void* addr, std::size_t size); void ignoreHeap(void* addr, std::size_t size);