Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for threadName (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<>();
    
      private @Nullable Throwable uncaughtThrowable = null;
    
      public TestThread(L lockLikeObject, String threadName) {
        super(threadName);
        this.lockLikeObject = checkNotNull(lockLikeObject);
        start();
      }
    
      // Thread.stop() is okay because all threads started by a test are dying at the end of the test,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Callables.java

      @GwtIncompatible // threads
      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;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<>();
    
      private @Nullable Throwable uncaughtThrowable = null;
    
      public TestThread(L lockLikeObject, String threadName) {
        super(threadName);
        this.lockLikeObject = checkNotNull(lockLikeObject);
        start();
      }
    
      // Thread.stop() is okay because all threads started by a test are dying at the end of the test,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/internal/Finalizer.java

        String threadName = Finalizer.class.getName();
        Thread thread = null;
        if (bigThreadConstructor != null) {
          try {
            boolean inheritThreadLocals = false;
            long defaultStackSize = 0;
            thread =
                bigThreadConstructor.newInstance(
                    (ThreadGroup) null, finalizer, threadName, defaultStackSize, inheritThreadLocals);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/internal/Finalizer.java

        String threadName = Finalizer.class.getName();
        Thread thread = null;
        if (bigThreadConstructor != null) {
          try {
            boolean inheritThreadLocals = false;
            long defaultStackSize = 0;
            thread =
                bigThreadConstructor.newInstance(
                    (ThreadGroup) null, finalizer, threadName, defaultStackSize, inheritThreadLocals);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Collections2.java

       * called on the filtered collection, only elements that satisfy the filter will be removed from
       * the underlying collection.
       *
       * <p>The returned collection isn't threadsafe or serializable, even if {@code unfiltered} is.
       *
       * <p>Many of the filtered collection's methods, such as {@code size()}, iterate across every
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.toArray(three)).isEqualTo(array);
    
        assertThat(Booleans.toArray(Booleans.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
        // Only for booleans, we lengthen VALUES
        boolean[] VALUES = BooleansTest.VALUES;
        VALUES = Booleans.concat(VALUES, VALUES);
    
        for (int delta : new int[] {+1, 0, -1}) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.toArray(three)).isEqualTo(array);
    
        assertThat(Booleans.toArray(Booleans.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
        // Only for booleans, we lengthen VALUES
        boolean[] VALUES = BooleansTest.VALUES;
        VALUES = Booleans.concat(VALUES, VALUES);
    
        for (int delta : new int[] {+1, 0, -1}) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

       * not to change during the copy. It is safe to do so in GWT because javascript is
       * single-threaded.
       */
      @GwtIncompatible // GWT is single threaded
      public void testCopyOf_threadSafe() {
        /*
         * The actual collections that we pass as inputs will be wrappers around these, so
         * ImmutableSet.copyOf won't short-circuit because it won't see an ImmutableSet input.
         */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

       * not to change during the copy. It is safe to do so in GWT because javascript is
       * single-threaded.
       */
      @GwtIncompatible // GWT is single threaded
      public void testCopyOf_threadSafe() {
        /*
         * The actual collections that we pass as inputs will be wrappers around these, so
         * ImmutableSet.copyOf won't short-circuit because it won't see an ImmutableSet input.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top