X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cea04af9af482c60d0b42fbc58bc3478a7e2c347..f9b13d923d31bb0336aeeaab6d5b7ba33812f3f7:/src/kernel/actor/SimcallObserver.hpp diff --git a/src/kernel/actor/SimcallObserver.hpp b/src/kernel/actor/SimcallObserver.hpp index 29642013de..95f6e25036 100644 --- a/src/kernel/actor/SimcallObserver.hpp +++ b/src/kernel/actor/SimcallObserver.hpp @@ -22,7 +22,6 @@ class SimcallObserver { public: XBT_DECLARE_ENUM_CLASS(Simcall, UNKNOWN, RANDOM, ISEND, IRECV, COMM_WAIT, COMM_TEST); - SimcallObserver() = default; explicit SimcallObserver(ActorImpl* issuer) : issuer_(issuer) {} ActorImpl* get_issuer() const { return issuer_; } /** Whether this transition can currently be taken without blocking. @@ -95,7 +94,7 @@ public: res->next_value_ = next_value_; return res; } - void serialize(Simcall& type, char* buffer) override { type = Simcall::RANDOM; } + void serialize(Simcall& type, char* buffer) override; int get_max_consider() const override; void prepare(int times_considered) override; std::string dot_label(int times_considered) const override; @@ -213,7 +212,7 @@ public: { } SimcallObserver* clone() override { return new ActivityWaitSimcall(get_issuer(), activity_, timeout_); } - void serialize(Simcall& type, char* buffer); + void serialize(Simcall& type, char* buffer) override; bool is_visible() const override { return true; } bool is_enabled() const override; std::string dot_label(int times_considered) const override;