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

Private GIT Repository
In compute_loop(), wait the duration of an *lb* iteration if there is nothing to do.
[loba.git] / process.h
index ff8b7517d5b3d062881388859ec53d4fc4f60882..d2f12292caaf9c62c65115ad5b667133604cd9f4 100644 (file)
--- a/process.h
+++ b/process.h
@@ -87,6 +87,7 @@ private:
 
     static int process_counter;
     static double total_load_average;
+    static double load_diff_threshold;
 
     typedef MAP_TEMPLATE<m_host_t, neighbor*> rev_neigh_type;
     neigh_type neigh;           // list of neighbors (do not alter
@@ -159,6 +160,9 @@ private:
     // Simulate computation loop
     void compute_loop();
 
+    // Check for convergence
+    void convergence_check();
+
     // Check if we need to stop
     bool still_running();