public void signalAll() { signaled = true; if (waiting != null) waiting.signalAll(); }
public void signalAll() { signaled = true; if (waiting != null) waiting.signalAll(); }
public void signalAll() { signaled = true; if (waiting != null) waiting.signalAll(); }
public void signalAll() { signaled = true; if (waiting != null) waiting.signalAll(); }
void wakeManager() { managerThreadWaitQueue.signalAll(); }
public void signalAll() { signaled = true; if (waiting != null) waiting.signalAll(); }
/** * Mark all prior operations as blocking, potentially signalling them to more aggressively make progress */ public void markBlocking() { Group current = orderOnOrBefore; while (current != null) { current.isBlocking = true; current.isBlockingSignal.signalAll(); current = current.prev; } }
void wakeManager() { managerThreadWaitQueue.signalAll(); }
/** * Mark all prior operations as blocking, potentially signalling them to more aggressively make progress */ public void markBlocking() { Group current = orderOnOrBefore; while (current != null) { current.isBlocking = true; current.isBlockingSignal.signalAll(); current = current.prev; } }
/** * Mark all prior operations as blocking, potentially signalling them to more aggressively make progress */ public void markBlocking() { Group current = orderOnOrBefore; while (current != null) { current.isBlocking = true; current.isBlockingSignal.signalAll(); current = current.prev; } }
/** * Mark all prior operations as blocking, potentially signalling them to more aggressively make progress */ public void markBlocking() { Group current = orderOnOrBefore; while (current != null) { current.isBlocking = true; current.isBlockingSignal.signalAll(); current = current.prev; } }
/** * Mark all prior operations as blocking, potentially signalling them to more aggressively make progress */ public void markBlocking() { Group current = orderOnOrBefore; while (current != null) { current.isBlocking = true; current.isBlockingSignal.signalAll(); current = current.prev; } }
void wakeManager() { managerThreadWaitQueue.signalAll(); }
void released(long size) { assert size >= 0; adjustAllocated(-size); hasRoom.signalAll(); }
void released(long size) { assert size >= 0; adjustAllocated(-size); hasRoom.signalAll(); }
void released(long size) { assert size >= 0; adjustAllocated(-size); hasRoom.signalAll(); }
void released(long size) { assert size >= 0; adjustAllocated(-size); hasRoom.signalAll(); }
void released(long size) { assert size >= 0; adjustAllocated(-size); hasRoom.signalAll(); }
boolean takeTaskPermit() { while (true) { long current = permits.get(); int taskPermits = taskPermits(current); if (taskPermits == 0) return false; if (permits.compareAndSet(current, updateTaskPermits(current, taskPermits - 1))) { if (taskPermits == maxTasksQueued && hasRoom.hasWaiters()) hasRoom.signalAll(); return true; } } }
boolean takeTaskPermit() { while (true) { long current = permits.get(); int taskPermits = taskPermits(current); if (taskPermits == 0) return false; if (permits.compareAndSet(current, updateTaskPermits(current, taskPermits - 1))) { if (taskPermits == maxTasksQueued && hasRoom.hasWaiters()) hasRoom.signalAll(); return true; } } }