MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RequestStop

Method RequestStop

tensorflow/cc/training/coordinator.cc:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Status Coordinator::RequestStop() {
62 mutex_lock l(mu_);
63 if (should_stop_) {
64 return Status(error::FAILED_PRECONDITION,
65 "The Coordinator is not running.");
66 }
67 should_stop_ = true;
68 wait_for_stop_.notify_all();
69 return Status::OK();
70}
71
72bool Coordinator::ShouldStop() {
73 mutex_lock l(mu_);

Callers 7

CloseSessionMethod · 0.80
StopRunnersMethod · 0.80
TESTFunction · 0.80
CountThreadMethod · 0.80
RunMethod · 0.80
TESTFunction · 0.80

Calls 2

notify_allMethod · 0.80
StatusClass · 0.50

Tested by 3

TESTFunction · 0.64
CountThreadMethod · 0.64
TESTFunction · 0.64