- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 48 for incrementAndGet (0.1 seconds)
-
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/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) -
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) -
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) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
Consumer<String> countingConsumer = line -> { if (line.startsWith("Thread:")) { threadCount.incrementAndGet(); } else if (line.startsWith("\tat ")) { stackTraceCount.incrementAndGet(); } }; ThreadDumpUtil.processThreadDump(countingConsumer); // Verify that multiple threads were processedCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
@Override public Integer load(Integer key) { countLoad.incrementAndGet(); return key; } @J2ktIncompatible @GwtIncompatible // reload @Override public ListenableFuture<Integer> reload(Integer key, Integer oldValue) { countReload.incrementAndGet(); return immediateFuture(oldValue + 1); } public int getLoadCount() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 22.8K bytes - Click Count (0)