X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6648998f0b7f58e4e9681b0bdee63d2061f4e02d..c139b4e36702f58bd8a75e87cf537959da82dbc9:/src/simix/ActorImpl.hpp diff --git a/src/simix/ActorImpl.hpp b/src/simix/ActorImpl.hpp index 86842433f9..9fe8d89d9d 100644 --- a/src/simix/ActorImpl.hpp +++ b/src/simix/ActorImpl.hpp @@ -19,7 +19,8 @@ struct s_smx_process_exit_fun_t { }; namespace simgrid { -namespace simix { +namespace kernel { +namespace actor { class ProcessArg { public: @@ -56,8 +57,8 @@ public: aid_t pid = 0; aid_t ppid = -1; simgrid::xbt::string name; - const simgrid::xbt::string& getName() const { return name; } - const char* getCname() const { return name.c_str(); } + const simgrid::xbt::string& get_name() const { return name; } + const char* get_cname() const { return name.c_str(); } s4u::Host* host = nullptr; /* the host on which the process is running */ smx_context_t context = nullptr; /* the context (uctx/raw/thread) that executes the user function */ @@ -127,10 +128,13 @@ public: typedef boost::intrusive::list, &ActorImpl::smx_synchro_hook>> SynchroList; + +XBT_PUBLIC void create_maestro(std::function code); } -} +} // namespace kernel +} // namespace simgrid -typedef simgrid::simix::ActorImpl* smx_actor_t; +typedef simgrid::kernel::actor::ActorImpl* smx_actor_t; extern "C" { @@ -140,16 +144,15 @@ XBT_PRIVATE smx_actor_t SIMIX_process_create(const char* name, std::function