Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix sonar warnings
authorAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Mon, 5 Jun 2023 12:55:57 +0000 (14:55 +0200)
committerAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Mon, 5 Jun 2023 13:00:44 +0000 (15:00 +0200)
examples/python/task-variable-load/task-variable-load.py
src/plugins/task.cpp

index 5e437e3..a8c9cc0 100644 (file)
@@ -32,12 +32,12 @@ def callback( t):
 
 def variable_load( t):
     print('--- Small load ---')
-    for i in range(3):
+    for _ in range(3):
         t.enqueue_execs(1)
         this_actor.sleep_for(100)
     this_actor.sleep_for(1000)
     print('--- Heavy load ---')
-    for i in range(3):
+    for _ in range(3):
         t.enqueue_execs(1)
         this_actor.sleep_for(1)
 
index f0bf5b1..f3f1ded 100644 (file)
@@ -101,7 +101,7 @@ void Task::complete()
     working_ = false;
     count_++;
   });
-  for (auto end_func : end_func_handlers_)
+  for (auto const& end_func : end_func_handlers_)
     end_func(this);
   Task::on_end(this);
   for (auto const& t : successors_)