private void decrementAndRunTaskQueue() { // We should never have a negative value. int currentCount = acquiredChannelCount.decrementAndGet(); assert currentCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }
private void decrementAndRunTaskQueue() { // We should never have a negative value. int currentCount = acquiredChannelCount.decrementAndGet(); assert currentCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }
private void decrementAndRunTaskQueue() { // We should never have a negative value. int currentCount = acquiredChannelCount.decrementAndGet(); assert currentCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }
private void decrementAndRunTaskQueue() { --acquiredChannelCount; // We should never have a negative value. assert acquiredChannelCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }
private void decrementAndRunTaskQueue() { --acquiredChannelCount; // We should never have a negative value. assert acquiredChannelCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }
private void decrementAndRunTaskQueue() { // We should never have a negative value. int currentCount = acquiredChannelCount.decrementAndGet(); assert currentCount >= 0; // Run the pending acquire tasks before notify the original promise so if the user would // try to acquire again from the ChannelFutureListener and the pendingAcquireCount is >= // maxPendingAcquires we may be able to run some pending tasks first and so allow to add // more. runTaskQueue(); }