private void FetchTile(TileInfo info, Retries retries) { if (retries.ReachedMax(info.Index)) { return; } lock (_tilesInProgress) { if (_tilesInProgress.Contains(info.Index)) { return; } _tilesInProgress.Add(info.Index); } retries.PlusOne(info.Index); _threadCount++; StartFetchOnThread(info); }
private void FetchTile(TileInfo info, Retries retries) { if (retries.ReachedMax(info.Index)) return; lock (_tilesInProgress) { if (_tilesInProgress.Contains(info.Index)) return; _tilesInProgress.Add(info.Index); } retries.PlusOne(info.Index); _threadCount++; StartFetchOnThread(info); }