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

Private GIT Repository
Rename process::send() -> process::send_all().
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 25 Jan 2011 09:14:22 +0000 (10:14 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 25 Jan 2011 09:14:22 +0000 (10:14 +0100)
process.cpp
process.h

index acd7aed7a9b37c523069dda420331f08c12b1b58..a0447de98c2f582b4c21dd3adec00597973414a4 100644 (file)
@@ -36,7 +36,7 @@ process::process(int argc, char* argv[])
 
     comp = 0.0;
 
 
     comp = 0.0;
 
-    prev_load_broadcast = -1;   // force sending of load on first send()
+    prev_load_broadcast = -1;   // force sending of load on first send_all()
     expected_load = load;
     total_load_running += load;
     total_load_init += load;
     expected_load = load;
     total_load_running += load;
     total_load_init += load;
@@ -109,7 +109,7 @@ int process::run()
         lb_load() = ld;
 
         // send load information, and load (data) if any
         lb_load() = ld;
 
         // send load information, and load (data) if any
-        send();
+        send_all();
         if (load > 0.0) {
             ++comp_iter;
             compute();
         if (load > 0.0) {
             ++comp_iter;
             compute();
@@ -248,7 +248,7 @@ void process::send1_bookkeeping(neighbor& nb)
         comm.send(nb.get_data_mbox(), new message(message::LOAD, load_to_send));
 }
 
         comm.send(nb.get_data_mbox(), new message(message::LOAD, load_to_send));
 }
 
-void process::send()
+void process::send_all()
 {
     using std::tr1::bind;
     using std::tr1::placeholders::_1;
 {
     using std::tr1::bind;
     using std::tr1::placeholders::_1;
index fb1fe3f377f9626a5af4fc0bc204e78c5691c5a9..a197e9afeb54c505bd6ab47e07481c92e6b1bafe 100644 (file)
--- a/process.h
+++ b/process.h
@@ -94,7 +94,7 @@ private:
     // Send procedures, with helpers for bookkeeping mode or not
     void send1_no_bookkeeping(neighbor& nb);
     void send1_bookkeeping(neighbor& nb);
     // Send procedures, with helpers for bookkeeping mode or not
     void send1_no_bookkeeping(neighbor& nb);
     void send1_bookkeeping(neighbor& nb);
-    void send();
+    void send_all();
 
     // Returns true if there remains neighbors to listen for
     bool may_receive() { return ctrl_close_pending || data_close_pending; }
 
     // Returns true if there remains neighbors to listen for
     bool may_receive() { return ctrl_close_pending || data_close_pending; }