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

Method Join

tensorflow/cc/training/prefetch_runner.cc:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73Status PrefetchRunner::Join() {
74 for (size_t i = 0; i < thread_pool_.size(); i++) {
75 if (thread_pool_[i] != nullptr && thread_pool_[i]->joinable())
76 thread_pool_[i]->join();
77 }
78
79 if (cancel_thread_ != nullptr && cancel_thread_->joinable()) {
80 cancel_thread_->join();
81 }
82
83 return Status::OK();
84}
85
86void PrefetchRunner::Run(size_t index) {
87 Status status;

Callers 1

StopRunnersMethod · 0.45

Calls 2

sizeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected