|
readonly object | _sync = new object() |
|
|
bool | IsEmpty [get] |
|
int | Count [get] |
|
Definition at line 9 of file CleanupQueue.cs.
void ImageResizer.Plugins.DiskCache.Cleanup.CleanupQueue.InsertRange |
( |
IList< CleanupWorkItem > |
items | ) |
|
|
inline |
Inserts the specified list of items and the end of the queue. They will be next items popped. They will pop off the list in the same order they exist in 'items' (i.e, they are inserted in reverse order).
- Parameters
-
Definition at line 56 of file CleanupQueue.cs.
58 ReverseEnumerable<CleanupWorkItem> reversed =
new ReverseEnumerable<CleanupWorkItem>(
new System.Collections.ObjectModel.ReadOnlyCollection<CleanupWorkItem>(items));
59 foreach (CleanupWorkItem item
in reversed)
bool ImageResizer.Plugins.DiskCache.Cleanup.CleanupQueue.QueueIfUnique |
( |
CleanupWorkItem |
item | ) |
|
|
inline |
Queues the item if no other identical items exist in the queue. Returns true if the item was added.
- Parameters
-
- Returns
Definition at line 27 of file CleanupQueue.cs.
29 bool unique = !queue.Contains(item);
30 if (unique) queue.AddLast(item);
void ImageResizer.Plugins.DiskCache.Cleanup.CleanupQueue.ReplaceWith |
( |
CleanupWorkItem |
item | ) |
|
|
inline |
Performs an atomic clear and enqueue of the specified item
- Parameters
-
Definition at line 90 of file CleanupQueue.cs.
The documentation for this class was generated from the following file:
- C:/Users/nathanael/Documents/resizer/Plugins/DiskCache/Cleanup/CleanupQueue.cs