X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/80a1fe1a200a4309c36598571b1f4ccb76a8788f..1585b49c3b4c38379d8ebc955f0c86c8b3467aba:/process.cpp?ds=inline diff --git a/process.cpp b/process.cpp index 2de3016..47dd94a 100644 --- a/process.cpp +++ b/process.cpp @@ -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__);