Google.Maps.TileLoading.TilePriorityQueue.Token

Priority token. Each of these represents an entry in the queue. They are activated in the order that they occur in the TilePriorityQueue, with the maximum number of active tokens limited by the parameter to the TilePriorityQueue constructor.

Summary

Tile processing should call TilePriorityQueue.Add (or TilePriorityQueue.AddLast) to get a token; wait until Active is true; then do whatever processing it needs to, and then Release the token.

Constructors and Destructors

Token(TilePriorityQueue queue, TileCoord coord)
Constructor.

Public attributes

Active
bool
Whether this token is active.
Coord
readonly TileCoord
Coordinates of the tile that requested this token.
Node
LinkedListNode< Token >
Position of this token in TilePriorityQueue.List.
Queue
readonly TilePriorityQueue
Priority queue that owns this token.

Public functions

Prioritize()
void
Moves this token in front of the queue's priority tail.
Release()
void
Releases this token. If it is active, the next inactive token in the queue will be activated.

Public attributes

Active

bool Active

Whether this token is active.

Coord

readonly TileCoord Coord

Coordinates of the tile that requested this token.

Node

LinkedListNode< Token > Node

Position of this token in TilePriorityQueue.List.

Queue

readonly TilePriorityQueue Queue

Priority queue that owns this token.

Public functions

Prioritize

void Prioritize()

Moves this token in front of the queue's priority tail.

Release

void Release()

Releases this token. If it is active, the next inactive token in the queue will be activated.

Token

 Token(
  TilePriorityQueue queue,
  TileCoord coord
)

Constructor.

Details
Parameters
queue
Priority queue that owns this token.
coord
Tile coordinate.