Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for setDaemon (0.17 sec)

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

                } catch (InterruptedException e) {
                  // simply finish execution
                } finally {
                  lock.unlock();
                }
              }
            };
        thread.setDaemon(true);
        thread.start();
        awaitUninterruptibly(latch);
        return thread;
      }
    
      private static class TestCondition implements Condition {
        private final Lock lock;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              }
            });
        awaitUninterruptibly(enteredLatch);
      }
    
      @CanIgnoreReturnValue
      static Thread startThread(Runnable runnable) {
        Thread thread = new Thread(runnable);
        thread.setDaemon(true);
        thread.start();
        return thread;
      }
    
      /**
       * Generates a test case verifying that calling any enterXxx, tryEnterXxx, or waitForXxx method
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      /** Returns a new started daemon Thread running the given runnable. */
      Thread newStartedThread(Runnable runnable) {
        Thread t = new Thread(runnable);
        t.setDaemon(true);
        t.start();
        return t;
      }
    
      /**
       * Waits for the specified time (in milliseconds) for the thread to terminate (using {@link
    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)
  4. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // TODO
      private static void useDaemonThreadFactory(ThreadPoolExecutor executor) {
        executor.setThreadFactory(
            new ThreadFactoryBuilder()
                .setDaemon(true)
                .setThreadFactory(executor.getThreadFactory())
                .build());
      }
    
      // See newDirectExecutorService javadoc for behavioral notes.
      @J2ktIncompatible
      @GwtIncompatible // TODO
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

                } catch (InterruptedException e) {
                  // simply finish execution
                } finally {
                  lock.unlock();
                }
              }
            };
        thread.setDaemon(true);
        thread.start();
        awaitUninterruptibly(latch);
        return thread;
      }
    
      private static class TestCondition implements Condition {
        private final Lock lock;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

          extends ForwardingFuture<V> implements ListenableFuture<V> {
    
        private static final ThreadFactory threadFactory =
            new ThreadFactoryBuilder()
                .setDaemon(true)
                .setNameFormat("ListenableFutureAdapter-thread-%d")
                .build();
        private static final Executor defaultAdapterExecutor =
            Executors.newCachedThreadPool(threadFactory);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/internal/Finalizer.java

          }
        }
        if (thread == null) {
          thread = new Thread((ThreadGroup) null, finalizer, threadName);
        }
        thread.setDaemon(true);
    
        try {
          if (inheritableThreadLocals != null) {
            inheritableThreadLocals.set(thread, null);
          }
        } catch (Throwable t) {
          logger.log(
              Level.INFO,
    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)
Back to top