/* They can also be called from maestro's context, and they are thread safe. */
/******************************************************************************/
-XBT_PUBLIC void simcall_call(smx_actor_t process);
-
/******************************* Host simcalls ********************************/
XBT_PUBLIC smx_activity_t simcall_execution_start(const char* name, double flops_amount, double priority, double bound,
sg_host_t host);
#include "popping_bodies.cpp"
-void simcall_call(smx_actor_t actor)
-{
- if (actor != simix_global->maestro_process) {
- XBT_DEBUG("Yield actor '%s' on simcall %s (%d)", actor->get_cname(), SIMIX_simcall_name(actor->simcall.call),
- (int)actor->simcall.call);
- SIMIX_process_yield(actor);
- } else {
- SIMIX_simcall_handle(&actor->simcall, 0);
- }
-}
-
/**
* \ingroup simix_process_management
* \brief Creates a synchro that executes some computation of an host.