]> AND Private Git Repository - loba.git/blobdiff - process.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
ALGORITHMS: spell check, reindent, and keep algorithms in alphabetical order.
[loba.git] / process.cpp
index 2de3016588dd2dd95e66b073eba4b59eb1ab7e18..47dd94a19d1030db12c4e55c1cd9683ff1560176 100644 (file)
@@ -127,6 +127,8 @@ void process::load_balance_loop()
             ++lb_iter;
         }
 
+        ctrl_receive(0.0);
+
         mutex.acquire();
         if (!opt::bookkeeping)
             expected_load = real_load - get_sum_of_to_send();
@@ -150,7 +152,6 @@ void process::load_balance_loop()
         mutex.release();
 
         sleep_until_date(next_iter_after_date, opt::min_lb_iter_duration);
-        ctrl_receive(0.0);
     }
 
     XBT_VERB("Going to finalize for %s...", __func__);