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

Private GIT Repository
Wip++...
[loba.git] / process.h
index aa1e032122e18545ce45d3d20ef4735ada3583a0..3baabbfddad931a25f1fe689faef32b6ca8882e3 100644 (file)
--- a/process.h
+++ b/process.h
@@ -8,7 +8,7 @@
 
 class process {
 public:
-    process(int argc, char *argv[]);
+    process(int argc, charargv[]);
     ~process() { };
     int run();
 
@@ -16,9 +16,14 @@ private:
     communicator comm;
     std::vector<neighbor> neigh;
     double load;
+    double expected_load;
+
+    int ctrl_close_pending;
+    int data_close_pending;
 
-    void receive();
     void compute();
+    bool receive(bool wait_for_close);
+    void finalize();
     void print_loads(e_xbt_log_priority_t logp = xbt_log_priority_info);
 };