X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6eb772e45cc853fc204bb5aebeb411cdfa7c929..ba13d6b347400d01094cd5987065bb2b3f721400:/examples/cpp/synchro-mutex/s4u-synchro-mutex.cpp diff --git a/examples/cpp/synchro-mutex/s4u-synchro-mutex.cpp b/examples/cpp/synchro-mutex/s4u-synchro-mutex.cpp index bab673122f..241322650e 100644 --- a/examples/cpp/synchro-mutex/s4u-synchro-mutex.cpp +++ b/examples/cpp/synchro-mutex/s4u-synchro-mutex.cpp @@ -47,7 +47,7 @@ static void workerScopedLock(sg4::MutexPtr mutex, int& result) int main(int argc, char** argv) { sg4::Engine e(&argc, argv); - e.load_platform("../../platforms/two_hosts.xml"); + e.load_platform(argc > 1 ? argv[1] : "../../platforms/two_hosts.xml"); /* Create the requested amount of actors pairs. Each pair has a specific mutex and cell in `result`. */ std::vector result(cfg_actor_count.get());