- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for addAndGet (0.41 sec)
-
src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java
bytesTransferred.addAndGet(bytes); totalSendTime.addAndGet(durationNanos); } /** * Record an RDMA receive operation * * @param bytes number of bytes received * @param durationNanos operation duration in nanoseconds */ public void recordRdmaReceive(int bytes, long durationNanos) { rdmaReceives.incrementAndGet(); bytesTransferred.addAndGet(bytes);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
long start = System.nanoTime(); mockBytesEncrypted.addAndGet(1024); // Simulate 1KB message long end = System.nanoTime(); totalTime.addAndGet(end - start); operations.incrementAndGet(); } } catch (InterruptedException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CountTest.java
assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20); assertEquals(21, holder.addAndGet(1)); } public void testGetAndSet() { Count holder = new Count(10); assertEquals(10, holder.getAndSet(20)); assertEquals(20, holder.get()); } public void testSet() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
* * @param bytes number of bytes */ public void addBytesSent(long bytes) { bytesSent.addAndGet(bytes); } /** * Add bytes received * * @param bytes number of bytes */ public void addBytesReceived(long bytes) { bytesReceived.addAndGet(bytes); } /** * Increment requests sent counter */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CountTest.java
assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20); assertEquals(21, holder.addAndGet(1)); } public void testGetAndSet() { Count holder = new Count(10); assertEquals(10, holder.getAndSet(20)); assertEquals(20, holder.get()); } public void testSet() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
*/ @CanIgnoreReturnValue public long incrementAndGet(K key) { return addAndGet(key, 1); } /** * Decrements by one the value currently associated with {@code key}, and returns the new value. */ @CanIgnoreReturnValue public long decrementAndGet(K key) { return addAndGet(key, -1); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Count.java
private int value; Count(int value) { this.value = value; } public int get() { return value; } public void add(int delta) { value += delta; } public int addAndGet(int delta) { return value += delta; } public void set(int newValue) { value = newValue; } public int getAndSet(int newValue) { int result = value; value = newValue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
case 1: map.decrementAndGet(key); threadSum--; break; case 2: map.addAndGet(key, delta); threadSum += delta; break; case 3: map.getAndIncrement(key); threadSum++;Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
} /** Advances the ticker value by {@code nanoseconds}. */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration @CanIgnoreReturnValue public FakeTicker advance(long nanoseconds) { nanos.addAndGet(nanoseconds); return this; } /** * Advances the ticker value by {@code duration}. * * @since 33.1.0 (but since 28.0 in the JRE <aRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
} } } } /** addAndGet adds given value to current, and returns current value */ public void testAddAndGet() { AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); for (int i : new int[] {0, SIZE - 1}) { for (double x : VALUES) { for (double y : VALUES) { aa.set(i, x); double z = aa.addAndGet(i, y); assertBitEquals(x + y, z);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.6K bytes - Viewed (0)