modules/core/src/testFixtures/java/org/apache/ignite/internal/TestHybridClock.java [69:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public long nowLong() {
        while (true) {
            long now = currentTime();

            // Read the latest time after accessing UTC time to reduce contention.
            long oldLatestTime = latestTime;

            long newLatestTime = max(oldLatestTime + 1, now);

            if (LATEST_TIME.compareAndSet(this, oldLatestTime, newLatestTime)) {
                return newLatestTime;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/core/src/main/java/org/apache/ignite/internal/hlc/HybridClockImpl.java [68:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public long nowLong() {
        while (true) {
            long now = currentTime();

            // Read the latest time after accessing UTC time to reduce contention.
            long oldLatestTime = latestTime;

            long newLatestTime = max(oldLatestTime + 1, now);

            if (LATEST_TIME.compareAndSet(this, oldLatestTime, newLatestTime)) {
                return newLatestTime;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



