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

Method Dequeue

tensorflow/core/common_runtime/ring_alg.cc:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84RingAlg::RingField* RingAlg::PCQueue::Dequeue() {
85 mutex_lock l(pcq_mu_);
86 if (deque_.empty()) {
87 ++waiter_count_;
88 while (deque_.empty()) {
89 cv_.wait(l);
90 }
91 --waiter_count_;
92 }
93 RingField* rf = deque_.front();
94 deque_.pop_front();
95 return rf;
96}
97
98RingAlg::RingAlg(CollectiveType type, const string& name)
99 : type_(type),

Callers 2

RunAsyncPartsMethod · 0.80
RunAsyncPartsMethod · 0.80

Calls 4

emptyMethod · 0.45
waitMethod · 0.45
frontMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected