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

Private GIT Repository
Add option -G, to exit on detection of global convergence.
[loba.git] / process.h
index 901d381fabeea8d2dc0025401d7b5966cefac9a4..5e1faa62a152f0bee9ce6f7a5dcd5920c2d50501 100644 (file)
--- a/process.h
+++ b/process.h
@@ -16,6 +16,7 @@
 #include <vector>
 #include <msg/msg.h>
 #include <xbt/log.h>
+#include "atomic_compat.h"
 #include "communicator.h"
 #include "misc.h"
 #include "msg_thread.h"
@@ -98,6 +99,8 @@ private:
     static double total_load_average;
     static double load_diff_threshold;
 
+    static std::atomic<int> convergence_counter;
+
     typedef MAP_TEMPLATE<m_host_t, neighbor*> rev_neigh_type;
     neigh_type neigh;           // list of neighbors (do not alter
                                 // after construction!)