Avoid race condition by manualy setting the island statut on running (Nils Mangelsen)

This commit is contained in:
quemy 2013-02-07 23:18:39 +01:00
commit c9c982fb81
4 changed files with 18 additions and 1 deletions

View file

@ -58,6 +58,7 @@ void paradiseo::smp::IslandModel<EOT>::operator()()
unsigned i = 0;
for(auto it : islands)
{
it.first->setRunning();
threads[i] = std::thread(&AIsland<EOT>::operator(), it.first);
i++;
}