- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for AtomicReference (0.07 sec)
-
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
final AtomicBoolean storeCalled = new AtomicBoolean(false); final AtomicReference<DataConfig> capturedConfig = new AtomicReference<>(); final AtomicReference<IndexUpdateCallback> capturedCallback = new AtomicReference<>(); final AtomicReference<DataStoreParams> capturedParams = new AtomicReference<>(); dataStore = new DataStore() { @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
@NullUnmarked public class AbstractLoadingCacheTest extends TestCase { public void testGetUnchecked_checked() { Exception cause = new Exception(); AtomicReference<Object> valueRef = new AtomicReference<>(); LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override public Object get(Object key) throws ExecutionException { Object v = valueRef.get();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* That is, even if exactly the same method works from inside the common.eventbus package tests, * it can fail here. */ public void testAnonymous() { AtomicReference<String> holder = new AtomicReference<>(); AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* That is, even if exactly the same method works from inside the common.eventbus package tests, * it can fail here. */ public void testAnonymous() { AtomicReference<String> holder = new AtomicReference<>(); AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly( startThread( new Runnable() { @Override public void run() { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly( startThread( new Runnable() { @Override public void run() { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
// Since this class only needs CAS on one field, we can avoid this bug by extending AtomicReference // instead of using an AtomicReferenceFieldUpdater. This reference stores Thread instances // and DONE/INTERRUPTED - they have a common ancestor of Runnable. abstract class InterruptibleTask<T extends @Nullable Object> extends AtomicReference<@Nullable Runnable> implements Runnable { static {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 10K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return 0; } }; AtomicReference<Throwable> throwableFromOtherThread = new AtomicReference<>(null); Runnable incrementTask = new Runnable() { @Override public void run() { threadLocalCount.set(threadLocalCount.get() + 1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 28K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertSame(one, cache.getUnchecked(one)); assertFalse(segment.recencyQueue.isEmpty()); } public void testRecursiveComputation() throws InterruptedException { AtomicReference<LoadingCache<Integer, String>> cacheRef = new AtomicReference<>(); CacheLoader<Integer, String> recursiveLoader = new CacheLoader<Integer, String>() { @Override public String load(Integer key) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
import java.io.InterruptedIOException import java.net.HttpURLConnection import java.time.Duration import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicReference import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.junit5.StartStop import okhttp3.MediaType.Companion.toMediaTypeOrNull
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 10.6K bytes - Viewed (0)