std::string instr_pid(msg_process_t proc)
{
- return std::string(proc->get_cname()) + "-" + std::to_string(proc->get_pid());
+ return std::string(proc->get_name()) + "-" + std::to_string(proc->get_pid());
}
/******************************** Process ************************************/
int MSG_process_self_PID()
{
smx_actor_t self = SIMIX_process_self();
- return self == nullptr ? 0 : self->pid_;
+ return self == nullptr ? 0 : self->get_pid();
}
/** @brief Return the PPID of the current process.