- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 94 for incrementAndGet (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
} public void testBasics() { AtomicInteger totalCalls = new AtomicInteger(); Runnable intCounter = () -> { totalCalls.incrementAndGet(); // Make sure that no other tasks are scheduled to run while this is running. assertFalse(fakePool.hasNext()); }; assertFalse(fakePool.hasNext()); e.execute(intCounter);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 10.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
for (int i = 0; i < 1000; i++) { AtomicInteger counter = new AtomicInteger(); TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(counter::incrementAndGet); CyclicBarrier barrier = new CyclicBarrier(numThreads + 1); Runnable wrapper = () -> { awaitUnchecked(barrier); task.run(); awaitUnchecked(barrier);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
for (int i = 0; i < 1000; i++) { AtomicInteger counter = new AtomicInteger(); TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(counter::incrementAndGet); CyclicBarrier barrier = new CyclicBarrier(numThreads + 1); Runnable wrapper = () -> { awaitUnchecked(barrier); task.run(); awaitUnchecked(barrier);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java
evictionCount.incrementAndGet(); totalSum.addAndGet(notification.getValue().get()); } }; CacheLoader<Integer, AtomicInteger> loader = new CacheLoader<Integer, AtomicInteger>() { @Override public AtomicInteger load(Integer key) { applyCount.incrementAndGet(); return new AtomicInteger(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 19.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
void recordConnection() { connectionsCreated.incrementAndGet(); lastActivityTime = System.currentTimeMillis(); } void recordSuccess() { successCount.incrementAndGet(); lastActivityTime = System.currentTimeMillis(); } void recordFailure() { failureCount.incrementAndGet(); lastActivityTime = System.currentTimeMillis();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 33.4K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
val calls = mutableMapOf<String, AtomicInteger>() override fun publish(record: LogRecord) { calls .getOrPut(record.loggerName) { AtomicInteger(0) } .incrementAndGet() } override fun flush() { } override fun close() { } }.apply { level = Level.FINEST } Logger
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
totalValidations.incrementAndGet(); if (buffer == null) { failedValidations.incrementAndGet(); throw new SmbException("Response buffer is null"); } if (buffer.length < expectedSize) { failedValidations.incrementAndGet(); bufferOverflowsPrevented.incrementAndGet();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) { if (replica.containsKey(newValue)) { replica.get(newValue).incrementAndGet(); } else { replica.put(newValue, new AtomicInteger(1)); } } private static void removeMinFromReplica( SortedMap<Integer, AtomicInteger> replica, int minValue) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java
* Record an RDMA operation error */ public void recordError() { operationErrors.incrementAndGet(); } /** * Record a new RDMA connection creation */ public void recordConnectionCreated() { connectionsCreated.incrementAndGet(); connectionsActive.incrementAndGet(); } /** * Record RDMA connection closure */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 10.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) { if (replica.containsKey(newValue)) { replica.get(newValue).incrementAndGet(); } else { replica.put(newValue, new AtomicInteger(1)); } } private static void removeMinFromReplica( SortedMap<Integer, AtomicInteger> replica, int minValue) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0)