X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d79c6aa768cb68806408632c832e5e1330e451a6..de9d56dddba96f345ba109a8cdb0a2986cd59292:/process.h?ds=sidebyside diff --git a/process.h b/process.h index ceca948..3e912f0 100644 --- a/process.h +++ b/process.h @@ -21,6 +21,7 @@ #include "msg_thread.h" #include "neighbor.h" #include "options.h" +#include "synchro.h" class process { public: @@ -97,6 +98,9 @@ private: double real_load; // current load double expected_load; // expected load in bookkeeping mode + mutex_t mutex; // synchronization between threads + condition_t cond; + // Load-balancing loop msg_thread* lb_thread; void load_balance_loop();