X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/325b135f0ee33c6c0242a14e2f58a54fb571b032..431ac6bd7924ab99473c9a621a25ab0c555c3e60:/process.h 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