X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/325b135f0ee33c6c0242a14e2f58a54fb571b032..c4e7c13743a9d1e8dfa5dc27d4b2fa3aaf1557ab:/process.h?ds=sidebyside diff --git a/process.h b/process.h index c148683..607a6af 100644 --- a/process.h +++ b/process.h @@ -31,6 +31,7 @@ protected: private: typedef MAP_TEMPLATE rev_neigh_type; + enum recv_wait_mode { NO_WAIT = 0, WAIT, WAIT_FOR_CLOSE }; rev_neigh_type rev_neigh; @@ -40,6 +41,7 @@ private: unsigned iter; + double prev_load_broadcast; double load; double expected_load; @@ -50,12 +52,10 @@ private: void send1_no_bookkeeping(neighbor& nb); void send1_bookkeeping(neighbor& nb); void send(); - bool receive(bool wait_for_close); + bool receive(recv_wait_mode wait); void finalize1(neighbor& nb); void finalize(); void print_loads(e_xbt_log_priority_t logp = xbt_log_priority_info); - - void insert_neighbor_in_map(neighbor& nb); }; #endif // !PROCESS_H