-# Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.
+# 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.
""" 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")
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")