Code cleanup
This commit is contained in:
parent
c91507381c
commit
a359656ca9
@ -100,10 +100,8 @@ class QueueToConsumer<T> implements IQueueToConsumer<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
preAddQueued.updateAndGet(n -> n > 0 ? n - 1 : 0);
|
preAddQueued.updateAndGet(n -> n > 0 ? n - 1 : 0);
|
||||||
} else {
|
} else if (park) {
|
||||||
if (park) {
|
LockSupport.parkNanos(HALF_SECOND_NS);
|
||||||
LockSupport.parkNanos(HALF_SECOND_NS);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user