Skip to content
Snippets Groups Projects
Commit 89228f26 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: multi-threading probably broken, cptFeat=0 outside the if guard

parent 4744f9b0
No related branches found
No related tags found
No related merge requests found
......@@ -740,7 +740,11 @@ PersistentSamplingFilterBase<TInputImage,TMaskImage>
dstFeature.SetFID(featIt->GetFID());
tmpLayers[counter].CreateFeature( dstFeature );
cptFeat++;
if (cptFeat > nbFeatThread) counter++; cptFeat=0;
if (cptFeat > nbFeatThread && (counter + 1) < numberOfThreads)
{
counter++;
cptFeat=0;
}
}
inLayer.SetSpatialFilter(ITK_NULLPTR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment