- /* If we are resuming another process, resume the synchronization it was waiting for
- if any. Otherwise add it to the list of process to run in the next round. */
- if (process != issuer) {
-
- if (process->waiting_synchro) {
- process->waiting_synchro->resume();
- }
- } else XBT_WARN("Strange. Process %p is trying to resume himself.", issuer);
+ /* resume the synchronization that was blocking the resumed process. */
+ if (process->waiting_synchro)
+ process->waiting_synchro->resume();