Searched refs:nextWaiter (Results 1 – 2 of 2) sorted by relevance
103 Waiter nextWaiter = mWaiters.peekFirst(); in releaseTicket() local104 while (nextWaiter != null && nextWaiter.getTicketsRequested() <= ticketsRemaining) { in releaseTicket()105 ticketsRemaining -= nextWaiter.getTicketsRequested(); in releaseTicket()106 nextWaiter.getCondition().signal(); in releaseTicket()109 nextWaiter = mWaiters.peekFirst(); in releaseTicket()
362 Waiter nextWaiter = mTicketWaiters.peek(); in releaseWaitersOnTicketAvailability() local363 if (nextWaiter.getRequestedTicketCount() <= numTicketsReadilyAvailable) { in releaseWaitersOnTicketAvailability()364 numTicketsReadilyAvailable -= nextWaiter.getRequestedTicketCount(); in releaseWaitersOnTicketAvailability()365 nextWaiter.getDoneCondition().signal(); in releaseWaitersOnTicketAvailability()