Skip to content

Commit

Permalink
Generated version update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsanw committed Jun 14, 2018
1 parent 2e38415 commit 6ce23ad
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -363,7 +363,7 @@ public int drain(Consumer<E> c, int limit) {
consumed += lookAheadStep;
} else {
if (lookAheadSeq < expectedLookAheadSeq) {
if (notAvailableYet(cIndex, mask, sBuffer, cIndex + 1)) {
if (notAvailable(cIndex, mask, sBuffer, cIndex + 1)) {
return consumed;
}
}
Expand Down Expand Up @@ -430,7 +430,7 @@ public int fill(Supplier<E> s, int limit) {
produced += lookAheadStep;
} else {
if (lookAheadSeq < expectedLookAheadSeq) {
if (notAvailableYet(pIndex, mask, sBuffer, pIndex)) {
if (notAvailable(pIndex, mask, sBuffer, pIndex)) {
return produced;
}
}
Expand All @@ -440,7 +440,7 @@ public int fill(Supplier<E> s, int limit) {
return limit;
}

private boolean notAvailableYet(long index, int mask, AtomicLongArray sBuffer, long expectedSeq) {
private boolean notAvailable(long index, int mask, AtomicLongArray sBuffer, long expectedSeq) {
final int seqOffset = calcSequenceOffset(index, mask);
final long seq = lvSequence(sBuffer, seqOffset);
if (seq < expectedSeq) {
Expand Down

0 comments on commit 6ce23ad

Please sign in to comment.