]> AND Private Git Repository - loba.git/blobdiff - process.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Update .gitignore.
[loba.git] / process.h
index c148683bca8764e145344c98d8900563f80dac1f..607a6af130e1dc330f555d4b5b23edc45eea8c24 100644 (file)
--- a/process.h
+++ b/process.h
@@ -31,6 +31,7 @@ protected:
 
 private:
     typedef MAP_TEMPLATE<m_host_t, neighbor*> 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