X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e536ac5528b51d2c1dec76a5bc1c37b9aaeae67f..16a31c00016c1067d3f401c90562b7415dfd2c26:/process.cpp diff --git a/process.cpp b/process.cpp index 53cbb59..b6afb49 100644 --- a/process.cpp +++ b/process.cpp @@ -227,6 +227,7 @@ void process::send() bind(&process::send1_no_bookkeeping, this, _1)); prev_load_broadcast = load; } + comm.flush(false); } void process::receive(bool wait) @@ -263,6 +264,7 @@ void process::receive(bool wait) delete msg; wait = false; // only wait on first recv } + comm.flush(false); } void process::finalize1(neighbor& nb) @@ -286,8 +288,10 @@ void process::finalize() DEBUG2("wait for CLOSE from %lu neighbor%s", (unsigned long )neigh.size(), ESSE(neigh.size())); - while (may_receive()) + while (may_receive()) { + comm.flush(false); receive(true); + } comm.flush(true); }