예제 #1
0
 public InputQueue <T> .Item DequeueAvailableItem()
 {
     Fx.AssertAndThrow(this.totalCount != this.pendingCount, "ItemQueue does not contain any available items");
     return(this.DequeueItemCore());
 }
예제 #2
0
 public void MakePendingItemAvailable()
 {
     Fx.AssertAndThrow(this.pendingCount != 0, "ItemQueue does not contain any pending items");
     InputQueue <T> .ItemQueue itemQueue = this;
     itemQueue.pendingCount = itemQueue.pendingCount - 1;
 }
예제 #3
0
 public void MakePendingItemAvailable()
 {
     Fx.AssertAndThrow(this.pendingCount != 0, "ItemQueue does not contain any pending items");
     this.pendingCount--;
 }