Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
process -> actor
[simgrid.git] / examples / python / actor-yield / actor-yield.py
index dc108bd..cb0f3c1 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright (c) 2017-2019. The SimGrid Team. All rights reserved.
+# Copyright (c) 2017-2021. 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 simgrid import Engine, this_actor
 import sys
-from simgrid import *
 
 # This example does not much: It just spans over-polite actor that yield a large amount
 # of time before ending.
@@ -16,7 +16,7 @@ from simgrid import *
 
 
 class Yielder:
-    """Main function of the Yielder process"""
+    """Main function of the Yielder actor"""
     number_of_yields = 0
 
     def __init__(self, *args):