X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/f29b38ef2a056daa14bbfda2fce78063faa773d4..f620be5869815a0dccd5b37089c2ee91399915e4:/process.h diff --git a/process.h b/process.h index ea35003..3baabbf 100644 --- a/process.h +++ b/process.h @@ -8,15 +8,23 @@ class process { public: - process(int argc, char *argv[]); + process(int argc, char* argv[]); ~process() { }; - void print_loads(e_xbt_log_priority_t logp = xbt_log_priority_info); int run(); private: communicator comm; std::vector neigh; double load; + double expected_load; + + int ctrl_close_pending; + int data_close_pending; + + void compute(); + bool receive(bool wait_for_close); + void finalize(); + void print_loads(e_xbt_log_priority_t logp = xbt_log_priority_info); }; #endif // !PROCESS_H