From bbe3553f47e430dac90d4a2aa0afeef220e759c3 Mon Sep 17 00:00:00 2001 From: quemy Date: Thu, 7 Feb 2013 22:04:14 +0100 Subject: [PATCH] Clear the sentMessages container in Island and IslandModel in order to use the model more than once (Nils Mangelsen) --- smp/src/island.cpp | 3 +++ smp/src/islandModel.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/smp/src/island.cpp b/smp/src/island.cpp index 22ab472cf..d0c7997ee 100644 --- a/smp/src/island.cpp +++ b/smp/src/island.cpp @@ -68,6 +68,9 @@ void paradiseo::smp::Island::operator()() // Let's wait the end of communications with the island model for(auto& message : sentMessages) message.join(); + + // Clear the sentMessages container + sentMessages.clear(); } template