Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 313 for Phread (0.17 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

            Thread t = this.thread;
            if ( t != null && Thread.currentThread() != t ) {
                this.thread = null;
                try {
                    log.debug("Interrupting transport thread");
                    t.interrupt();
                    log.debug("Joining transport thread");
                    t.join(timeout);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
        Thread thread = new Thread(new JoinTarget(15));
        thread.start();
        thread.join();
        assertFalse(thread.isAlive());
    
        joinUninterruptibly(thread);
        joinUninterruptibly(thread, 0, MILLISECONDS);
        joinUninterruptibly(thread, -42, MILLISECONDS);
        joinUninterruptibly(thread, LONG_DELAY_MS, MILLISECONDS);
    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)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            directExecutor());
        service.startAsync().awaitRunning();
    
        Thread thread =
            new Thread() {
              @Override
              public void run() {
                service.stopAsync().awaitTerminated();
              }
            };
        thread.start();
        thread.join(LONG_TIMEOUT_MILLIS);
        assertFalse(thread + " is deadlocked", thread.isAlive());
      }
    
    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)
  4. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

            }
          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      /** Invokes {@code toJoin.}{@link Thread#join() join()} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static void joinUninterruptibly(Thread toJoin) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        @Override
        public boolean equals(@Nullable Object object) {
          assertTrue(Thread.holdsLock(mutex));
          return super.equals(object);
        }
    
        @Override
        public K getKey() {
          assertTrue(Thread.holdsLock(mutex));
          return super.getKey();
        }
    
        @Override
        public V getValue() {
          assertTrue(Thread.holdsLock(mutex));
          return super.getValue();
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

      @GuardedBy("queue")
      private WorkerRunningState workerRunningState = IDLE;
    
      /**
       * This counter prevents an ABA issue where a thread may successfully schedule the worker, the
       * worker runs and exhausts the queue, another thread enqueues a task and fails to schedule the
       * worker, and then the first thread's call to delegate.execute() returns. Without this counter,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

            block_fetcher_(block_fetcher),
            timer_seconds_(timer_seconds),
            pruning_thread_(nullptr,
                            [](TF_Thread* thread) { TF_JoinThread(thread); }) {
        if (max_staleness_ > 0) {
          TF_ThreadOptions thread_options;
          TF_DefaultThreadOptions(&thread_options);
          pruning_thread_.reset(
              TF_StartThread(&thread_options, "TF_prune_FBC", PruneThread, this));
        }
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         *       observing a null thread does not mean the object is safe to reuse.
         *   <li>If this field's value is some other thread object, we know that it's not our thread.
         *   <li>If this field's value == null because it originally belonged to another thread and that
         *       thread cleared it, we still know that it's not associated with our thread
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            directExecutor());
        service.startAsync().awaitRunning();
    
        Thread thread =
            new Thread() {
              @Override
              public void run() {
                service.stopAsync().awaitTerminated();
              }
            };
        thread.start();
        thread.join(LONG_TIMEOUT_MILLIS);
        assertFalse(thread + " is deadlocked", thread.isAlive());
      }
    
    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)
  10. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
        Thread thread = new Thread(new JoinTarget(15));
        thread.start();
        thread.join();
        assertFalse(thread.isAlive());
    
        joinUninterruptibly(thread);
        joinUninterruptibly(thread, 0, MILLISECONDS);
        joinUninterruptibly(thread, -42, MILLISECONDS);
        joinUninterruptibly(thread, LONG_DELAY_MS, MILLISECONDS);
    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)
Back to top