Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
CommWaitTransition mailbox is now valid
[simgrid.git] / src / kernel / actor / SimcallObserver.hpp
index 29642013ded19bb6529362eb20fccac05fc8978f..95f6e25036251db4e3cfda7ab4131cc3c5dd87a4 100644 (file)
@@ -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;