X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/754db84445c812d3480832460e90a112b77648d0..5f5a10db6fc4552782638abb4817041223e17775:/src/mc/remote/AppSide.hpp diff --git a/src/mc/remote/AppSide.hpp b/src/mc/remote/AppSide.hpp index 5dcb934e2a..03250e901b 100644 --- a/src/mc/remote/AppSide.hpp +++ b/src/mc/remote/AppSide.hpp @@ -22,7 +22,7 @@ class XBT_PUBLIC AppSide { private: Channel channel_; static std::unique_ptr instance_; - bool need_memory_info_ = false; /* by default we don't send memory info, unless we got a NEED_MEMINFO */ + std::unordered_map child_statuses_; public: AppSide(); @@ -33,9 +33,8 @@ private: void handle_deadlock_check(const s_mc_message_t* msg) const; void handle_simcall_execute(const s_mc_message_simcall_execute_t* message) const; void handle_finalize(const s_mc_message_int_t* msg) const; - void handle_fork(const s_mc_message_int_t* msg); + void handle_fork(const s_mc_message_fork_t* msg); void handle_wait_child(const s_mc_message_int_t* msg); - void handle_need_meminfo(); void handle_actors_status() const; void handle_actors_maxpid() const; @@ -44,18 +43,9 @@ public: Channel& get_channel() { return channel_; } XBT_ATTRIB_NORETURN void main_loop(); void report_assertion_failure(); - void ignore_memory(void* addr, std::size_t size) const; - void ignore_heap(void* addr, std::size_t size) const; - void unignore_heap(void* addr, std::size_t size) const; - void declare_symbol(const char* name, int* value) const; -#if HAVE_UCONTEXT_H - void declare_stack(void* stack, size_t size, ucontext_t* context) const; -#endif - // Singleton :/ // TODO, remove the singleton antipattern. - static AppSide* initialize(); - static AppSide* get() { return instance_.get(); } + static AppSide* get(); }; } // namespace simgrid::mc