]> AND Public Git Repository - simgrid.git/blobdiff - examples/python/synchro-mutex/synchro-mutex.py
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
properly remove the old signals and prevent MC to fire Comm::on_this_completion
[simgrid.git] / examples / python / synchro-mutex / synchro-mutex.py
index 298de0bb708a17d3cec034ab6ea5045fce1271c3..1a202ba87504f5820b4d9c8e0161d79f0cab4636 100644 (file)
@@ -35,9 +35,9 @@ class ResultHolder:
 def worker_context_manager(mutex: Mutex, result: ResultHolder):
     # When using a context manager, the lock and the unlock are automatic. This is the easiest approach
     with mutex:
-        this_actor.info(f"Hello simgrid, I'm ready to compute after acquiring the mutex from a context manager")
+        this_actor.info("Hello simgrid, I'm ready to compute after acquiring the mutex from a context manager")
         result.value += 1
-    this_actor.info(f"I'm done, good bye")
+    this_actor.info("I'm done, good bye")
 
 
 def worker(mutex: Mutex, result: ResultHolder):