*/
smx_actor_t SIMIX_process_self()
{
- smx_context_t self_context = SIMIX_context_self();
+ smx_context_t self_context = simgrid::kernel::context::Context::self();
return (self_context != nullptr) ? self_context->process() : nullptr;
}
void SIMIX_process_detach()
{
- auto* context = dynamic_cast<simgrid::kernel::context::AttachContext*>(SIMIX_context_self());
+ auto* context = dynamic_cast<simgrid::kernel::context::AttachContext*>(simgrid::kernel::context::Context::self());
if (context == nullptr)
xbt_die("Not a suitable context");
*/
if (simgrid::kernel::context::factory_initializer == nullptr) // Only Java sets a factory_initializer, for now
- actor->throw_exception(std::make_exception_ptr(simgrid::kernel::context::Context::StopRequest("Host failed")));
+ actor->throw_exception(std::make_exception_ptr(simgrid::kernel::context::Context::StopRequest("host failed")));
}
/* destroy the blocking synchro if any */