Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u: rename the private implementations as such
[simgrid.git] / include / simgrid / s4u / actor.hpp
index 680bcd6..2479075 100644 (file)
@@ -49,7 +49,7 @@ public:
   virtual int main(int argc, char **argv);
 
   /** The Actor that is currently running */
-  static Actor *current();
+  static Actor &self();
   /** Retrieves the actor that have the given PID (or NULL if not existing) */
   //static Actor *byPid(int pid); not implemented
 
@@ -95,9 +95,9 @@ public:
   void send(Mailbox &chan, void*payload, size_t simulatedSize);
 
 protected:
-  smx_process_t getInferior() {return p_smx_process;}
+  smx_process_t getInferior() {return pimpl_;}
 private:
-  smx_process_t p_smx_process;
+  smx_process_t pimpl_;
 };
 }} // namespace simgrid::s4u