Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
react sainly if the actor was not create by S4U but by the application deployment
[simgrid.git] / include / simgrid / s4u / actor.hpp
index 6b9c524..bcfff13 100644 (file)
@@ -41,13 +41,14 @@ class Mailbox;
  */
 class Actor {
        friend Comm;
+       Actor(smx_process_t smx_proc);
 public:
        Actor(const char*name, s4u::Host *host, int argc, char **argv);
        Actor(const char*name, s4u::Host *host, int argc, char **argv, double killTime);
        virtual ~Actor() {}
 
        /** The main method of your agent */
-       virtual int main(int argc, char **argv)=0;
+       int main(int argc, char **argv) {return 0;}
 
        /** The Actor that is currently running */
        static Actor *current();