You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// spin get next available cursor
long currentCursor = cursor.get();
long nextCursor = cursor.updateAndGet(old -> old == tail.get() ? old : old + 1);
// trigger padding in an async-mode if reach the threshold
long currentTail = tail.get();
改成下面这样是否可以???
// spin get next available cursor
long currentCursor = cursor.get();
long currentTail = tail.get();
long nextCursor = currentCursor;
if (currentCursor != currentTail) {
nextCursor = cursor.incrementAndGet();
}
The text was updated successfully, but these errors were encountered:
// spin get next available cursor
long currentCursor = cursor.get();
long nextCursor = cursor.updateAndGet(old -> old == tail.get() ? old : old + 1);
// trigger padding in an async-mode if reach the threshold
long currentTail = tail.get();
改成下面这样是否可以???
// spin get next available cursor
long currentCursor = cursor.get();
long currentTail = tail.get();
long nextCursor = currentCursor;
if (currentCursor != currentTail) {
nextCursor = cursor.incrementAndGet();
}
原来:
改成下面这样是否可以???
The text was updated successfully, but these errors were encountered: