Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isAlive (0.04 sec)

  1. 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");
                  /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            indexUpdater.indexingHelper = indexingHelper;
        }
    
        @Override
        public void tearDown() throws Exception {
            if (indexUpdater != null && indexUpdater.isAlive()) {
                indexUpdater.setFinishCrawling(true);
                indexUpdater.interrupt();
                indexUpdater.join(1000);
            }
            super.tearDown();
        }
    
        // Test initialization
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

            } finally {
                if (task != null) {
                    task.cancel();
                }
                if (p != null && p.isAlive()) {
                    logger.warn("Process {} is still alive in finally block. Forcing destruction.", p);
                    if (task == null) {
                        task = new ProcessDestroyer(p, ist, commandDestroyTimeout);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Fri Jul 18 14:34:06 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  4. 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");
                  /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            InputStreamThread thread = jobProcess.getInputStreamThread();
    
            assertEquals("InputStreamThread", thread.getName());
            assertFalse("Thread should not be started yet", thread.isAlive());
        }
    
        public void test_processAssignment() throws IOException {
            Process mockProcess = createMockProcess("assignment test");
            JobProcess jobProcess = new JobProcess(mockProcess);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

          this.shutdown = shutdown;
          start();
        }
    
        @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
        void shutdown() {
          shutdown.set(true);
          while (this.isAlive()) {
            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

          this.shutdown = shutdown;
          start();
        }
    
        @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
        void shutdown() {
          shutdown.set(true);
          while (this.isAlive()) {
            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/timer/TimeoutManager.java

            }
            t.interrupt();
            if (logger.isDebugEnabled()) {
                logger.debug("TimeoutManager stopped.");
            }
            t.join(timeoutMillis);
            return !t.isAlive();
        }
    
        /**
         * Clears the managed {@link TimeoutTask}.
         */
        public synchronized void clear() {
            timeoutTaskList.clear();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. 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();
        }
    
        /**
         * Internal method to destroy a specific JobProcess.
         * Handles cleanup of streams, threads, and process termination.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                }
              }
            };
        waiter.start();
        awaitTimedWaiting(waiter);
        service.shutdown();
        Uninterruptibles.joinUninterruptibly(waiter, 10, SECONDS);
        if (waiter.isAlive()) {
          waiter.interrupt();
          fail("awaitTermination failed to trigger after shutdown()");
        }
      }
    
      /** Wait for the given thread to reach the {@link State#TIMED_WAITING} thread state. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top