#include <boost/range/algorithm.hpp>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix, "Logging specific to SIMIX (process)");
#include <boost/range/algorithm.hpp>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix, "Logging specific to SIMIX (process)");
- SIMIX_process_create(arg.name.c_str(), std::move(arg.code), arg.data, arg.host, arg.properties.get(), nullptr);
+ SIMIX_process_create(arg.name, std::move(arg.code), arg.data, arg.host, arg.properties.get(), nullptr);
simcall_process_set_kill_time(actor, arg.kill_time);
actor->set_auto_restart(arg.auto_restart);
simcall_process_set_kill_time(actor, arg.kill_time);
actor->set_auto_restart(arg.auto_restart);
- maestro = new simgrid::kernel::actor::ActorImpl();
- maestro->pid_ = simix_process_maxpid++;
- maestro->name_ = "";
- maestro->set_user_data(nullptr);
+ smx_actor_t maestro = new simgrid::kernel::actor::ActorImpl(simgrid::xbt::string(""), /*host*/ nullptr);
XBT_VERB("Create context %s", process->get_cname());
process->context_ = SIMIX_context_new(std::move(code), &SIMIX_process_cleanup, process);
XBT_VERB("Create context %s", process->get_cname());
process->context_ = SIMIX_context_new(std::move(code), &SIMIX_process_cleanup, process);
intrusive_ptr_add_ref(process);
auto* context = dynamic_cast<simgrid::kernel::context::AttachContext*>(process->context_);
intrusive_ptr_add_ref(process);
auto* context = dynamic_cast<simgrid::kernel::context::AttachContext*>(process->context_);
- /* The onCreation() signal must be delayed until there, where the pid and everything is set */
- simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to onCreation will lead to crashes
+ /* The on_creation() signal must be delayed until there, where the pid and everything is set */
+ simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to on_creation will lead to crashes
* be nullptr.
* It can be retrieved with the method ActorImpl::getUserData().
* @param host where the new agent is executed.
* be nullptr.
* It can be retrieved with the method ActorImpl::getUserData().
* @param host where the new agent is executed.
* @param properties the properties of the process
*/
smx_actor_t simcall_process_create(std::string name, simgrid::simix::ActorCode code, void* data, sg_host_t host,
* @param properties the properties of the process
*/
smx_actor_t simcall_process_create(std::string name, simgrid::simix::ActorCode code, void* data, sg_host_t host,