Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for wspolicy (0.15 sec)

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

        }
      }
    
      //////// Implementation /////////
    
      private static final LazyLogger logger = new LazyLogger(CycleDetectingLockFactory.class);
    
      final Policy policy;
    
      private CycleDetectingLockFactory(Policy policy) {
        this.policy = checkNotNull(policy);
      }
    
      /**
       * Tracks the currently acquired locks for each Thread, kept up to date by calls to {@link
    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)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
      /** Runs a runnable without any permissions. */
      public void runWithoutPermissions(Runnable r) {
        runWithPermissions(r);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Monitor.java

      /**
       * Creates a monitor with a non-fair (but fast) ordering policy. Equivalent to {@code
       * Monitor(false)}.
       */
      public Monitor() {
        this(false);
      }
    
      /**
       * Creates a monitor with the given ordering policy.
       *
       * @param fair whether this monitor should use a fair ordering policy rather than a non-fair (but
       *     fast) one
       */
      public Monitor(boolean fair) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return;
        }
        Policy oldPolicy = Policy.getPolicy();
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          Policy.setPolicy(new PermissivePolicy());
          System.setSecurityManager(new SecurityManager());
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
          Policy.setPolicy(oldPolicy);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      private <E extends Enum<E>>
          CycleDetectingLockFactory.WithExplicitOrdering<E> newInstanceWithExplicitOrdering(
              Class<E> enumClass, Policy policy) {
        return new CycleDetectingLockFactory.WithExplicitOrdering<E>(
            policy, CycleDetectingLockFactory.createNodes(enumClass));
      }
    
      public void testDeadlock_twoLocks() {
        // Establish an acquisition order of lockA -> lockB.
        lockA.lock();
    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/src/com/google/common/collect/ForwardingImmutableCollection.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Dummy class that makes the GWT serialization policy happy. It isn't used on the server-side.
     *
     * @author Hayward Chan
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    class ForwardingImmutableCollection {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 972 bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RangeMap.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface RangeMap<K extends Comparable, V> {
      /*
       * TODO(cpovirk): These docs sometimes say "map" and sometimes say "range map." Pick one, or at
       * least decide on a policy for when to use which.
       */
    
      /**
       * Returns the value associated with the specified key, or {@code null} if there is no such value.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ValueGraph.java

     *       {@code equals()}, {@code hashCode()}, and graph equivalence</a>
     *   <li><a href="https://github.com/google/guava/wiki/GraphsExplained#synchronization">
     *       Synchronization policy</a>
     *   <li><a href="https://github.com/google/guava/wiki/GraphsExplained#notes-for-implementors">Notes
     *       for implementors</a>
     * </ul>
     *
     * @author James Sexton
     * @author Joshua O'Madadhain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
      /** Runs a runnable without any permissions. */
      public void runWithoutPermissions(Runnable r) {
        runWithPermissions(r);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * if occurrences == 0. This satisfies both NullPointerTester and
       * CollectionRemoveTester.testRemove_nullAllowed, but it's not clear that it's
       * a good policy, especially because, in order for the test to pass, the
       * parameter must be misleadingly annotated as @Nullable. I suspect that
       * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top