Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 370 for Runnable (0.04 sec)

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

        AtomicInteger actualOccupiedDepth = new AtomicInteger();
        AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
            startThread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      actualIsOccupied.set(monitor.isOccupied());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        private val exceptions: BlockingQueue<Exception> = LinkedBlockingQueue()
    
        override fun execute(runnable: Runnable) {
          super.execute {
            try {
              runnable.run()
            } catch (e: Exception) {
              exceptions.add(e)
            }
          }
        }
    
        fun takeException(): Exception = exceptions.take()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        cache.getUnchecked("a");
        shouldWait.set(true);
    
        CountDownLatch computationStarted = new CountDownLatch(1);
        CountDownLatch computationComplete = new CountDownLatch(1);
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    computationStarted.countDown();
                    cache.getUnchecked("b");
                    computationComplete.countDown();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        cache.getUnchecked("a");
        shouldWait.set(true);
    
        CountDownLatch computationStarted = new CountDownLatch(1);
        CountDownLatch computationComplete = new CountDownLatch(1);
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    computationStarted.countDown();
                    cache.getUnchecked("b");
                    computationComplete.countDown();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            final CountDownLatch endLatch = new CountDownLatch(threadCount);
    
            for (int i = 0; i < threadCount; i++) {
                final int threadId = i;
                new Thread(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            startLatch.await();
                            for (int j = 0; j < rulesPerThread; j++) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
      static void awaitWaiting(Thread t) {
        while (true) {
          Thread.State state = t.getState();
          switch (state) {
            case RUNNABLE:
            case BLOCKED:
              Thread.yield();
              break;
            case WAITING:
              return;
            default:
              throw new AssertionError("unexpected state: " + state);
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

            T,
            E>
        extends FeatureSpecificTestSuiteBuilder<B, G> {
      private static final Logger logger =
          Logger.getLogger(PerCollectionSizeTestSuiteBuilder.class.getName());
    
      /** Creates a runnable JUnit test suite based on the criteria already given. */
      @Override
      public TestSuite createTestSuite() {
        checkCanCreate();
    
        String name = getName();
        // Copy this set, so we can modify it.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                  return 25;
                }
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = newCachedThreadPool();
    
        task.addListener(
            new Runnable() {
              @Override
              public void run() {
                listenerLatch.countDown();
              }
            },
            directExecutor());
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    
            for (int i = 0; i < threadCount; i++) {
                final int threadId = i;
                executor.submit(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            startLatch.await();
                            for (int j = 0; j < operationsPerThread; j++) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            final List<Exception> exceptions = new ArrayList<>();
    
            Thread[] threads = new Thread[threadCount];
            for (int i = 0; i < threadCount; i++) {
                threads[i] = new Thread(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            for (int j = 0; j < objectsPerThread; j++) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top