- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 787 for sock (0.04 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
} static TestCondition create() { Lock lock = new ReentrantLock(); Condition condition = lock.newCondition(); return new TestCondition(lock, condition); } @Override public void await() throws InterruptedException { lock.lock(); try { condition.await(); } finally { lock.unlock(); } } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 31.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java
for (int i = 0; i < reps; i++) { lock.lock(); lock.unlock(); } } @Benchmark void orderedPlainLocks(int reps) { lockAndUnlockNested(plainLocks, reps); } @Benchmark void orderedCycleDetectingLocks(int reps) { lockAndUnlockNested(detectingLocks, reps); } private static void lockAndUnlockNested(Lock[] locks, int reps) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java
public void test_findBusinessLocale_withValidLocale() { // Setup mock config FessConfig mockConfig = new FessConfig.SimpleImpl() { @Override public String getQueryBrowserLangParameterName() { return "lang"; } }; ComponentUtil.setFessConfig(mockConfig); // Setup mock request manager
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/SuggestJobTest.java
public void start() { // Mock implementation } // Custom join method to avoid overriding final Thread.join() public void waitForCompletion(long millis) { // Mock implementation } @Override public String getOutput() { return output; } } // Mock Process implementation
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 31.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java
assertTrue(true); } // Test doFilter when WebApiManagerFactory returns null WebApiManager public void test_doFilter_withNullWebApiManager() throws IOException, ServletException { // Setup mock objects HttpServletRequest request = createMockHttpServletRequest(); HttpServletResponse response = createMockHttpServletResponse(); AtomicBoolean chainCalled = new AtomicBoolean(false);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 26.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/DirectExecutorService.java
*/ @GuardedBy("lock") private int runningTasks = 0; @GuardedBy("lock") private boolean shutdown = false; @Override public void execute(Runnable command) { startTask(); try { command.run(); } finally { endTask(); } } @Override public boolean isShutdown() { synchronized (lock) { return shutdown; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 3.5K bytes - Viewed (0) -
cmd/namespace-lock_test.go
} } // Test lock race func TestNSLockRace(t *testing.T) { t.Skip("long test skip it") ctx := t.Context() for i := range 10000 { nsLk := newNSLock(false) // lk1; ref=1 if !nsLk.lock(ctx, "volume", "path", "source", "opsID", false, time.Second) { t.Fatal("failed to acquire lock") } // lk2 lk2ch := make(chan struct{}) go func() {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsReferralTest.java
// Create a mock DfsReferralData object DfsReferralData mockData = mock(DfsReferralData.class); String expectedToString = "Mock DfsReferralData"; // Define the behavior of the mock's toString() method when(mockData.toString()).thenReturn(expectedToString); // Create a DfsReferral instance with the mock data DfsReferral dfsReferral = new DfsReferral(mockData);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0)