Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for isAlive (0.25 sec)

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

        assertEquals(State.RUNNING, service.state());
        service.stopAsync();
        waiter.join(LONG_TIMEOUT_MILLIS); // ensure that the await in the other thread is triggered
        assertFalse(waiter.isAlive());
      }
    
      public void testAwaitTerminated_FailedService() throws Exception {
        final ManualSwitchedService service = new ManualSwitchedService();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

                interruptingThread.interrupt();
                joinUninterruptibly(interruptingThread, 2500, MILLISECONDS);
                Thread.interrupted();
                if (interruptingThread.isAlive()) {
                  // This will be hidden by test-output redirection:
                  logger.severe("InterruptenatorTask did not exit; future tests may be affected");
                  /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

                interruptingThread.interrupt();
                joinUninterruptibly(interruptingThread, 2500, MILLISECONDS);
                Thread.interrupted();
                if (interruptingThread.isAlive()) {
                  // This will be hidden by test-output redirection:
                  logger.severe("InterruptenatorTask did not exit; future tests may be affected");
                  /*
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (1)
  4. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

        }
    
        public boolean isProcessRunning(final String sessionId) {
            final JobProcess jobProcess = runningProcessMap.get(sessionId);
            return jobProcess != null && jobProcess.getProcess().isAlive();
        }
    
        protected int destroyProcess(final String sessionId, final JobProcess jobProcess) {
            if (jobProcess != null) {
                final InputStreamThread ist = jobProcess.getInputStreamThread();
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        assertEquals(State.RUNNING, service.state());
        service.stopAsync();
        waiter.join(LONG_TIMEOUT_MILLIS); // ensure that the await in the other thread is triggered
        assertFalse(waiter.isAlive());
      }
    
      public void testAwaitTerminated_FailedService() throws Exception {
        final ManualSwitchedService service = new ManualSwitchedService();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

        }
        return countingRunnable.integer.get();
      }
    
      @Benchmark
      int timeContendedExecute(int reps) {
        final Executor executor = this.executor;
        for (Thread thread : threads) {
          if (!thread.isAlive()) {
            thread.start();
          }
        }
        final CountingRunnable countingRunnable = this.countingRunnable;
        for (int i = 0; i < reps; i++) {
          executor.execute(countingRunnable);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

        }
        return countingRunnable.integer.get();
      }
    
      @Benchmark
      int timeContendedExecute(int reps) {
        final Executor executor = this.executor;
        for (Thread thread : threads) {
          if (!thread.isAlive()) {
            thread.start();
          }
        }
        final CountingRunnable countingRunnable = this.countingRunnable;
        for (int i = 0; i < reps; i++) {
          executor.execute(countingRunnable);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      void assertThreadStaysAlive(Thread thread, long millis) {
        try {
          // No need to optimize the failing case via Thread.join.
          delay(millis);
          assertTrue(thread.isAlive());
        } catch (InterruptedException ie) {
          fail("Unexpected InterruptedException");
        }
      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
    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)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                this.p = p;
                this.ist = ist;
                this.timeout = timeout;
            }
    
            @Override
            public void run() {
                if (!p.isAlive()) {
                    return;
                }
    
                executed.set(true);
    
                if (logger.isDebugEnabled()) {
                    logger.debug("Interrupting a stream thread.");
                }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/timer/TimeoutManager.java

            }
            t.interrupt();
            if (logger.isDebugEnabled()) {
                logger.debug("TimeoutManager stopped.");
            }
            t.join(timeoutMillis);
            return !t.isAlive();
        }
    
        /**
         * 管理している {@link TimeoutTask}をクリアします。
         */
        public synchronized void clear() {
            timeoutTaskList.clear();
        }
    
        /**
         * {@link TimeoutTarget}を追加します。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top