internal void DoStartScavenging() { lock (ignoredScavengeRequestsCountLock) { ignoredScavengeRequestsCount = 0; } scavenger.DoScavenging(); }
internal void Scavenge() { int pendingScavengings = Interlocked.Exchange(ref scavengePending, 0); int timesToScavenge = ((pendingScavengings - 1) / scavengerTask.NumberOfItemsToBeScavenged) + 1; while (timesToScavenge > 0) { scavengerTask.DoScavenging(); --timesToScavenge; } }
internal void DoStartScavenging() { scavenger.DoScavenging(); }