From ae4699176f683fe105574ca2847c0011c285292d Mon Sep 17 00:00:00 2001 From: quemy Date: Sat, 24 Nov 2012 16:38:08 +0100 Subject: [PATCH] Clean src. Add setTopology to the island model --- smp/src/island.cpp | 26 +++++++------------------- smp/src/islandModel.cpp | 29 ++++++++++++++++------------- smp/src/islandModel.h | 6 ++++++ smp/test/t-smpIsland.cpp | 5 ++--- 4 files changed, 31 insertions(+), 35 deletions(-) diff --git a/smp/src/island.cpp b/smp/src/island.cpp index 1d9cb8a52..92880f6a9 100644 --- a/smp/src/island.cpp +++ b/smp/src/island.cpp @@ -55,11 +55,10 @@ void paradiseo::smp::Island::operator()() { stopped = false; algo(pop); + stopped = true; // Let's wait the end of communications with the island model for(auto& message : sentMessages) message.join(); - stopped = true; - //std::cout << "Fin de l'île " << this << std::endl; } template