Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CycleDetectingLockFactory (0.31 sec)

  1. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       *
       * <pre>{@code
       * CycleDetectingLockFactory.WithExplicitOrdering<MyLockOrder> factory1 =
       *   CycleDetectingLockFactory.newInstanceWithExplicitOrdering(...);
       * CycleDetectingLockFactory.WithExplicitOrdering<MyLockOrder> factory2 =
       *   CycleDetectingLockFactory.newInstanceWithExplicitOrdering(...);
       *
       * Lock lockA = factory1.newReentrantLock(MyLockOrder.FIRST);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Joiner;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.Policies;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.Policy;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.PotentialDeadlockException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.locks.Lock;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Joiner;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.Policies;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.Policy;
    import com.google.common.util.concurrent.CycleDetectingLockFactory.PotentialDeadlockException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.locks.Lock;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    
    /**
     * Benchmarks for {@link CycleDetectingLockFactory}.
     *
     * @author Darick Tong
     */
    public class CycleDetectingLockFactoryBenchmark {
    
      @Param({"2", "3", "4", "5", "10"})
      int lockNestingDepth;
    
      CycleDetectingLockFactory factory;
      private Lock[] plainLocks;
      private Lock[] detectingLocks;
    
      @BeforeExperiment
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
Back to top