Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for QThread (0.24 sec)

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

      public void testRenaming() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/artifact/resolver/DefaultArtifactResolverTest.java

                }
    
                seen = true;
    
                tg = aTgList;
                Thread[] ts = new Thread[tg.activeCount()];
                tg.enumerate(ts);
    
                for (Thread active : ts) {
                    String name = active.getName();
                    boolean daemon = active.isDaemon();
                    assertTrue(daemon, name + " is no daemon Thread.");
                }
            }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SuppliersTest.java

                for (Thread thread : threads) {
                  if (isWaiting(thread)) {
                    waitingThreads++;
                  }
                }
                return waitingThreads;
              }
    
              @Override
              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                for (Thread thread : threads) {
                  if (isWaiting(thread)) {
                    waitingThreads++;
                  }
                }
                return waitingThreads;
              }
    
              @Override
              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

        @Override
        public String toString() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.toString();
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.equals(o);
        }
    
        @Override
        public int hashCode() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.hashCode();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

        @Override
        public String toString() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.toString();
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.equals(o);
        }
    
        @Override
        public int hashCode() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.hashCode();
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/timer/TimeoutManager.java

            return instance;
        }
    
        /**
         * 処理を開始します。
         */
        public synchronized void start() {
            if (thread == null) {
                thread = new Thread(this, "CoreLib-TimeoutManager");
                thread.setDaemon(true);
                thread.start();
                if (logger.isDebugEnabled()) {
                    logger.debug("TimeoutManager started.");
                }
            }
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *       <ol>
       *         <li>When a thread attaches a listener to a {@code ListenableFuture} that's already
       *             complete, the listener runs immediately in that thread.
       *         <li>When a thread attaches a listener to a {@code ListenableFuture} that's
       *             incomplete and the {@code ListenableFuture} later completes normally, the
       *             listener runs in the thread that completes the {@code ListenableFuture}.
    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)
  9. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
                          holder.count++;
                          return Thread.currentThread().getStackTrace().length;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
                          holder.count++;
                          return Thread.currentThread().getStackTrace().length;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
Back to top