private void pop(int amount) { for (int i = 0; i < amount; i++) { requests.Add(p.popNextRequest()); } }
private ChabuChannelImpl PopNextPriorizedChannelRequest(Priorizer priorizer) { lock (this){ int reqChannel = priorizer.popNextRequest(); if (reqChannel < 0) { return(null); } return(channels.get(reqChannel)); } }