-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_popping, simix,
- "Popping part of SIMIX (transmuting from user request into kernel handlers)");
-
-void SIMIX_simcall_answer(smx_simcall_t simcall)
-{
- if (simcall->issuer != simix_global->maestro_process){
- XBT_DEBUG("Answer simcall %s (%d) issued by %s (%p)", SIMIX_simcall_name(simcall->call), (int)simcall->call,
- simcall->issuer->get_cname(), simcall->issuer);
- simcall->issuer->simcall.call = SIMCALL_NONE;
- xbt_assert(not XBT_LOG_ISENABLED(simix_popping, xbt_log_priority_debug) ||
- std::find(begin(simix_global->actors_to_run), end(simix_global->actors_to_run), simcall->issuer) ==
- end(simix_global->actors_to_run),
- "Actor %p should not exist in actors_to_run!", simcall->issuer);
- simix_global->actors_to_run.push_back(simcall->issuer);
- }
-}