Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make synchro-mutex.py in line with s4u-synchro-mutex.cpp
[simgrid.git] / examples / cpp / synchro-mutex / s4u-synchro-mutex.cpp
index 52e2595..648024a 100644 (file)
@@ -49,6 +49,7 @@ static void master()
   /* Create the requested amount of actors pairs. Each pair has a specific mutex and cell in `result`. */
   int result[cfg_actor_count.get()];
 
+  sg4::MutexPtr mutex = sg4::Mutex::create();
   for (int i = 0; i < cfg_actor_count; i++) {
     result[i]           = 0;
     sg4::MutexPtr mutex = sg4::Mutex::create();