while (not actors_to_destroy.empty()) {
smx_actor_t actor = &actors_to_destroy.front();
actors_to_destroy.pop_front();
- XBT_DEBUG("Getting rid of %p", actor);
+ XBT_DEBUG("Getting rid of %s (refcount: %d)", actor->get_cname(), actor->get_refcount());
intrusive_ptr_release(actor);
}
#if SIMGRID_HAVE_MC
*/
void Global::run_all_actors()
{
- SIMIX_context_runall();
+ simix_global->context_factory->run_all();
actors_to_run.swap(actors_that_ran);
actors_to_run.clear();
/* Kill all processes (but maestro) */
simix_global->maestro_process->kill_all();
- SIMIX_context_runall();
+ simix_global->context_factory->run_all();
simix_global->empty_trash();
/* Exit the SIMIX network module */
*/
void SIMIX_run()
{
- if (not MC_record_path.empty()) {
+ if (MC_record_replay_is_active()) {
simgrid::mc::replay(MC_record_path);
return;
}