mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.10.0: Simplified TileImageLoader.
This commit is contained in:
parent
be3a247064
commit
bbd952b955
2 changed files with 10 additions and 10 deletions
|
|
@ -77,9 +77,9 @@ namespace MapControl
|
|||
loadFunc = tile => LoadTileImageAsync(tile, tileSource);
|
||||
}
|
||||
|
||||
var maxTasks = Math.Min(pendingTiles.Count, MaxLoadTasks);
|
||||
var newTasks = Math.Min(pendingTiles.Count, MaxLoadTasks) - taskCount;
|
||||
|
||||
while (taskCount < maxTasks)
|
||||
while (--newTasks >= 0)
|
||||
{
|
||||
Interlocked.Increment(ref taskCount);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue