Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for duallock (0.22 sec)

  1. internal/dsync/drwmutex_test.go

    		t.Errorf("TestSimpleWriteLockTimedOut(): \nexpected %#v\ngot      %#v", expected, locked)
    	}
    }
    
    func testDualWriteLock(t *testing.T, duration time.Duration) (locked bool) {
    	drwm1 := NewDRWMutex(ds, "duallock")
    
    	// fmt.Println("Getting initial write lock")
    	ctx1, cancel1 := context.WithCancel(context.Background())
    	if !drwm1.GetLock(ctx1, cancel1, id, source, Options{Timeout: time.Second}) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
     *       deadlock situation, and the appropriate Policy is executed.
     * </ul>
     *
     * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
     * happen, as it is possible that higher level application logic prevents the cyclic lock
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        assertSame(firstException.getCause(), expected.getCause());
        // lockA should work after lockB is released.
        lockB.unlock();
        lockA.lock();
      }
    
      // Tests transitive deadlock detection.
      public void testDeadlock_threeLocks() {
        // Establish an ordering from lockA -> lockB.
        lockA.lock();
        lockB.lock();
        lockB.unlock();
        lockA.unlock();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  4. misc/wasm/wasm_exec_node.js

    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    			go._pendingEvent = { id: 0 };
    			go._resume();
    		}
    	});
    	return go.run(result.instance);
    }).catch((err) => {
    	console.error(err);
    	process.exit(1);
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 30 18:49:42 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        assertSame(firstException.getCause(), expected.getCause());
        // lockA should work after lockB is released.
        lockB.unlock();
        lockA.lock();
      }
    
      // Tests transitive deadlock detection.
      public void testDeadlock_threeLocks() {
        // Establish an ordering from lockA -> lockB.
        lockA.lock();
        lockB.lock();
        lockB.unlock();
        lockA.unlock();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        Thread.sleep(UNIT.toMillis(3 * DELAY));
        assertEquals(1, service.numIterations.get());
      }
    
      public void testCustomScheduler_deadlock() throws InterruptedException, BrokenBarrierException {
        final CyclicBarrier inGetNextSchedule = new CyclicBarrier(2);
        // This will flakily deadlock, so run it multiple times to increase the flake likelihood
        for (int i = 0; i < 1000; i++) {
          Service service =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    public final class InterruptibleTaskTest extends TestCase {
    
      // Regression test for a deadlock where a task could be stuck busy waiting for the task to
      // transition to DONE
      public void testInterruptThrows() throws Exception {
        final CountDownLatch isInterruptibleRegistered = new CountDownLatch(1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        Thread.sleep(UNIT.toMillis(3 * DELAY));
        assertEquals(1, service.numIterations.get());
      }
    
      public void testCustomScheduler_deadlock() throws InterruptedException, BrokenBarrierException {
        final CyclicBarrier inGetNextSchedule = new CyclicBarrier(2);
        // This will flakily deadlock, so run it multiple times to increase the flake likelihood
        for (int i = 0; i < 1000; i++) {
          Service service =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. docs/contribute/concurrency.md

    The reader thread must never run application-layer code. Otherwise one slow stream can hold up the entire connection.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    public final class InterruptibleTaskTest extends TestCase {
    
      // Regression test for a deadlock where a task could be stuck busy waiting for the task to
      // transition to DONE
      public void testInterruptThrows() throws Exception {
        final CountDownLatch isInterruptibleRegistered = new CountDownLatch(1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
Back to top