Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for waitForStop (0.27 sec)

  1. tensorflow/cc/training/coordinator.cc

        return;
      }
      status_ = status;
    }
    
    Status Coordinator::GetStatus() {
      mutex_lock l(status_lock_);
      return status_;
    }
    
    void Coordinator::WaitForStop() {
      mutex_lock l(mu_);
      while (!should_stop_) {
        wait_for_stop_.wait(l);
      }
    }
    
    Status Coordinator::ExportCostGraph(CostGraphDef* cost_graph) const {
      mutex_lock l(runners_lock_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcessBuilder.java

            }
    
            @Override
            public ObjectConnection getConnection() {
                return delegate.getConnection();
            }
    
            @Override
            public ExecResult waitForStop() {
                return delegate.waitForStop();
            }
    
            @Override
            public Optional<ExecResult> getExecResult() {
                return delegate.getExecResult();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. tensorflow/cc/training/coordinator.h

      /// Returns the latest status.
      Status GetStatus();
    
      /// Returns immediately if the coordinator is stopped or blocks until
      /// RequestStop() is called.
      void WaitForStop();
    
      // Returns the cost graph from stored run metadata in registered runners.
      Status ExportCostGraph(CostGraphDef* cost_graph) const;
    
     private:
      std::unordered_set<int> clean_stop_errors_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultSingleRequestWorkerProcessBuilder.java

                        requester.runThenStop(new Request(request, CurrentBuildOperationRef.instance().get()));
                        boolean hasResult = receiver.awaitNextResult();
                        workerProcess.waitForStop();
                        if (!hasResult) {
                            // Reached the end of input, worker has exited without failing
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 04 09:27:37 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/worker/ForkingTestClassProcessor.java

                            remoteProcessor.stop();
                        }
                    } finally {
                        lock.unlock();
                    }
                    workerProcess.waitForStop();
                }
            } catch (ExecException e) {
                if (!stoppedNow) {
                    throw new ExecException(e.getMessage()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/process/internal/worker/DefaultWorkerProcessSpec.groovy

            op.start {
                op.callbackLater {
                    workerProcess.onConnect(connection)
                }
                workerProcess.start()
                assert workerProcess.waitForStop() == execResult
            }
    
            then:
            1 * execHandle.start()
            1 * execHandle.waitForFinish() >> execResult
            1 * execResult.assertNormalExitValue() >> execResult
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 07:21:35 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcess.java

            // This may contain references to tasks, projects, and builds which we don't want to keep around
            execHandle.removeStartupContext();
        }
    
        @Override
        public ExecResult waitForStop() {
            try {
                return execHandle.waitForFinish().assertNormalExitValue();
            } finally {
                cleanup();
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. tensorflow/cc/training/queue_runner.cc

      SetRunArgumentsAndCostGraph(run_options);
      return Start(session, wait_for_ms);
    }
    
    void QueueRunner::Stop(Session* sess) {
      if (coord_ != nullptr) {
        coord_->WaitForStop();
      }
      if (!cancel_op_name_.empty()) {
        UpdateStatus(RealRun(sess, cancel_op_name_, false));
      }
      stopped_ = true;
    }
    
    Status QueueRunner::Join() {
      thread_pool_.reset();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/plugin/noderesources.go

    		c.run(ctx)
    	}()
    
    	return c
    }
    
    // waitForStop blocks until all background activity spawned by
    // the controller has stopped. The context passed to start must
    // be canceled for that to happen.
    //
    // Not needed at the moment, but if it was, this is what it would
    // look like...
    // func (c *nodeResourcesController) waitForStop() {
    // 	if c == nil {
    // 		return
    // 	}
    //
    // 	c.wg.Wait()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

                lock.unlock();
            }
        }
    
        @After
        public void waitForStop() {
            lock.lock();
            try {
                stopped = true;
            } finally {
                lock.unlock();
            }
            waitForAll();
        }
    
        @Override
        protected void after() {
            waitForStop();
        }
    
        /**
         * Returns the meta-info for the given clock tick.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
Back to top