Searched refs:grabbing (Results 1 – 1 of 1) sorted by relevance
942 long grabbing; in acquirePermits() local949 grabbing = Math.min(remainingPermits, numElements); in acquirePermits()950 } while (grabbing > 0 && in acquirePermits()951 !permits.compareAndSet(remainingPermits, remainingPermits - grabbing)); in acquirePermits()954 return Math.max(numElements - grabbing, 0); in acquirePermits()956 return Math.max(grabbing - (remainingPermits - skipThreshold), 0); in acquirePermits()958 return grabbing; in acquirePermits()