- /* Move all killer processes to the end of the list, because killing a process that have an ongoing simcall is a bad idea */
- simgrid::xbt::three_way_partition(begin(simix_global->process_that_ran), end(simix_global->process_that_ran),
- [](smx_actor_t p) {
- switch (p->simcall.call) {
- case SIMCALL_NONE:
- case SIMCALL_PROCESS_KILL:
- return 2;
- // case SIMCALL_PROCESS_RESUME:
- // return 1;
- default:
- return 0;
- }
- });
-