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

Method Enqueue

tensorflow/core/common_runtime/ring_alg.cc:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74} // namespace
75
76void RingAlg::PCQueue::Enqueue(RingField* rf) {
77 mutex_lock l(pcq_mu_);
78 deque_.push_back(rf);
79 if (waiter_count_ > 0) {
80 cv_.notify_one();
81 }
82}
83
84RingAlg::RingField* RingAlg::PCQueue::Dequeue() {
85 mutex_lock l(pcq_mu_);

Callers 2

RunAsyncPartsMethod · 0.45
RunAsyncPartsMethod · 0.45

Calls 2

notify_oneMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected