X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1098e770381274687f9569b22b50dac4000e9ed4..1b75ebf09b4d1b81533d140a9437efffeb9e6a0c:/src/mc/Client.hpp diff --git a/src/mc/Client.hpp b/src/mc/Client.hpp index b4f95caa90..6de722cbeb 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,18 +33,18 @@ 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); void unignoreHeap(void* addr, std::size_t size); void declareSymbol(const char *name, int* value); #if HAVE_UCONTEXT_H - void declareStack(void *stack, size_t size, smx_process_t process, ucontext_t* context); + void declareStack(void *stack, size_t size, smx_actor_t process, ucontext_t* context); #endif // Singleton :/