Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Refactorize the sthread interception of functions
[simgrid.git] / examples / python / synchro-barrier / synchro-barrier.py
index 33cb389af55e01ce89bb04be16b471c159a19db8..6b81a1d7b081397e04f1fd3df1553a42e0d82a21 100644 (file)
@@ -1,3 +1,8 @@
+# Copyright (c) 2010-2023. The SimGrid Team. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
 from argparse import ArgumentParser
 import sys
 
@@ -25,7 +30,7 @@ def worker(barrier: Barrier):
     """ Wait on the barrier and exits.
     :param barrier: Barrier to be awaited
     """
-    this_actor.info(f"Waiting on the barrier")
+    this_actor.info("Waiting on the barrier")
     barrier.wait()
     this_actor.info("Bye")
 
@@ -40,7 +45,7 @@ def master(actor_count: int):
     this_actor.info(f"Spawning {workers_count} workers")
     for i in range(workers_count):
         Actor.create(f"worker-{i}", Host.by_name("Jupiter"), worker, barrier)
-    this_actor.info(f"Waiting on the barrier")
+    this_actor.info("Waiting on the barrier")
     barrier.wait()
     this_actor.info("Bye")