#include <boost/core/demangle.hpp>
#include <string>
#include <typeinfo>
+XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
/**
* @ingroup simix_host_management
&observer);
}
-simgrid::kernel::activity::State simcall_process_sleep(double duration) // XBT_ATTRIB_DEPRECATED_v329
-{
- simgrid::kernel::actor::ActorImpl::self()->sleep(duration);
- return simgrid::kernel::activity::State::DONE;
-}
-
/**
* @ingroup simix_comm_management
*/
*/
smx_mutex_t simcall_mutex_init() // XBT_ATTRIB_DEPRECATED_v330
{
- if (simix_global == nullptr) {
- fprintf(stderr, "You must initialize the SimGrid engine before using it\n"); // We can't use xbt_die since we may
- // get there before the initialization
- xbt_abort();
- }
return simgrid::kernel::actor::simcall([] { return new simgrid::kernel::activity::MutexImpl(); });
}
void unblock(smx_actor_t actor)
{
- xbt_assert(SIMIX_is_maestro());
+ xbt_assert(s4u::Actor::is_maestro());
actor->simcall_answer();
}
} // namespace simix