Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for modifyThread (0.08 sec)

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

      private static boolean trySetName(String threadName, Thread currentThread) {
        /*
         * setName should usually succeed, but the security manager can prohibit it. Is there a way to
         * see if we have the modifyThread permission without catching an exception?
         */
        try {
          currentThread.setName(threadName);
          return true;
        } catch (SecurityException e) {
          return false;
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Callables.java

      private static boolean trySetName(String threadName, Thread currentThread) {
        /*
         * setName should usually succeed, but the security manager can prohibit it. Is there a way to
         * see if we have the modifyThread permission without catching an exception?
         */
        try {
          currentThread.setName(threadName);
          return true;
        } catch (SecurityException e) {
          return false;
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      public static Policy permissivePolicy() {
        return new AdjustablePolicy
        // Permissions j.u.c. needs directly
        (
            new RuntimePermission("modifyThread"),
            new RuntimePermission("getClassLoader"),
            new RuntimePermission("setContextClassLoader"),
            // Permissions needed to change permissions!
            new SecurityPermission("getPolicy"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      public static Policy permissivePolicy() {
        return new AdjustablePolicy
        // Permissions j.u.c. needs directly
        (
            new RuntimePermission("modifyThread"),
            new RuntimePermission("getClassLoader"),
            new RuntimePermission("setContextClassLoader"),
            // Permissions needed to change permissions!
            new SecurityPermission("getPolicy"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top