- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,054 for Spread (0.08 sec)
-
guava-tests/test/com/google/common/util/concurrent/TestThread.java
} /** * Causes this thread to call the named method, and asserts that this thread becomes blocked on * the lock-like object. The lock-like object must have a method equivalent to {@link * java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}. */ public void callAndAssertBlocks(String methodName, Object... arguments) throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 10.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
if (isWaiting(thread)) { waitingThreads++; } } return waitingThreads; } @Override @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races public Boolean get() { // Check that this method is called exactly once, by the first
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
if (isWaiting(thread)) { waitingThreads++; } } return waitingThreads; } @Override @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races public Boolean get() { // Check that this method is called exactly once, by the first
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
LockingThread thread = new LockingThread(lockA); thread.start(); thread.waitUntilHoldingLock(); assertFalse(lockA.tryLock()); thread.releaseLockAndFinish(); assertTrue(lockA.tryLock()); } public void testReentrantWriteLock_tryLock() throws Exception { LockingThread thread = new LockingThread(writeLockA); thread.start();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
LockingThread thread = new LockingThread(lockA); thread.start(); thread.waitUntilHoldingLock(); assertFalse(lockA.tryLock()); thread.releaseLockAndFinish(); assertTrue(lockA.tryLock()); } public void testReentrantWriteLock_tryLock() throws Exception { LockingThread thread = new LockingThread(writeLockA); thread.start();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
} } /** Wait for the given thread to reach the {@link State#TIMED_WAITING} thread state. */ @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait. void awaitTimedWaiting(Thread thread) { while (true) { switch (thread.getState()) { case BLOCKED: case NEW: case RUNNABLE: case WAITING: Thread.yield(); break;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0) -
internal/s3select/jstream/scanner.go
return sr } // remaining returns the number of unread bytes // if EOF for the underlying reader has not yet been found, // maximum possible integer value will be returned func (s *scanner) remaining() int64 { if atomic.LoadInt64(&s.end) == maxInt { return maxInt } return atomic.LoadInt64(&s.end) - s.pos } // read byte at current position (without advancing)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 2.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java
server.start(); final String url = "http://localhost:7070/"; try { final ResponseData responseData = httpClient.doHead(url); Thread.sleep(100); assertNotNull(responseData.getLastModified()); assertTrue(responseData.getLastModified().getTime() < new Date().getTime()); } finally { server.stop(); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu May 09 09:28:25 UTC 2024 - 8.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java
assertEquals(0, ticker.read()); assertEquals(10, ticker.read()); assertEquals(20, ticker.read()); } public void testAutoIncrementStep_millis() { FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, MILLISECONDS); assertEquals(0, ticker.read()); assertEquals(1000000, ticker.read()); assertEquals(2000000, ticker.read()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 22 13:49:09 UTC 2024 - 6.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/MoreExecutors.java
* <ol> * <li>When a thread attaches a listener to a {@code ListenableFuture} that's already * complete, the listener runs immediately in that thread. * <li>When a thread attaches a listener to a {@code ListenableFuture} that's * incomplete and the {@code ListenableFuture} later completes normally, the * listener runs in the thread that completes the {@code ListenableFuture}.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 44.1K bytes - Viewed (0)