Пример #1
0
        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);
        }
Пример #2
0
        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);
        }