MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / Pop

Method Pop

paddle/fluid/framework/blocking_queue.h:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 T Pop() {
95 std::unique_lock<std::mutex> lock(mutex_);
96 cv_.wait(lock, [=] { return !q_.empty(); });
97 T rc(std::move(q_.front()));
98 q_.pop_front();
99 return rc;
100 }
101
102 void Pop(T *t) {
103 std::unique_lock<std::mutex> lock(mutex_);

Callers 4

TrainFilesMethod · 0.45
StartMethod · 0.45
NextMethod · 0.45
get_packMethod · 0.45

Calls 3

waitMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected