/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
protected final void soSequence(AtomicLongArray buffer, int offset, long e) { buffer.lazySet(offset, e); }
@Override void setCountAtNormalizedIndex(int index, long value) { counts.lazySet(index, value); }
@Override void setCountAtIndex(int index, long value) { counts.lazySet(index, value); }
ParallelDispatcher(Subscriber<? super T>[] subscribers, int prefetch) { this.subscribers = subscribers; this.prefetch = prefetch; this.limit = prefetch - (prefetch >> 2); int m = subscribers.length; this.requests = new AtomicLongArray(m + m + 1); this.requests.lazySet(m + m, m); this.emissions = new long[m]; }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
ParallelDispatcher(Subscriber<? super T>[] subscribers, int prefetch) { this.subscribers = subscribers; this.prefetch = prefetch; this.limit = prefetch - (prefetch >> 2); int m = subscribers.length; this.requests = new AtomicLongArray(m + m + 1); this.requests.lazySet(m + m, m); this.emissions = new long[m]; }
protected static void soValue(AtomicLongArray elements, int index, long value) { elements.lazySet(calcValueOffset(index), value); }
@Override void clearCounts() { for (int i = 0; i < counts.length(); i++) { counts.lazySet(i, 0); } totalCountUpdater.set(this, 0); }
@Override void setCountAtIndex(int index, long value) { counts.lazySet(index, value); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
/** * Eventually sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void lazySet(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.lazySet(i, next); }
@Override synchronized void fillCountsArrayFromBuffer(final ByteBuffer buffer, final int length) { LongBuffer logbuffer = buffer.asLongBuffer(); for (int i = 0; i < length; i++) { counts.lazySet(i, logbuffer.get()); } } }
/** * Adds {@code addend} to the counter, using {@code lazySet}. Useful for * incrementing {@linkplain com.hazelcast.internal.metrics.Probe probes} * if only one thread is updating the value. */ public static void lazyAdd(AtomicLongArray counters, int index, long addend) { counters.lazySet(index, counters.get(index) + addend); }
@Override void clearCounts() { for (int i = 0; i < counts.length(); i++) { counts.lazySet(i, 0); } totalCountUpdater.set(this, 0); }
@Override void clearCounts() { for (int i = 0; i < counts.length(); i++) { counts.lazySet(i, 0); } totalCountUpdater.set(this, 0); }