MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / pop

Method pop

rtpose_wrapper/src/caffe/util/blocking_queue.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<typename T>
48T BlockingQueue<T>::pop(const string& log_on_wait) {
49 boost::mutex::scoped_lock lock(sync_->mutex_);
50
51 while (queue_.empty()) {
52 if (!log_on_wait.empty()) {
53 LOG_EVERY_N(INFO, 1000)<< log_on_wait;
54 }
55 sync_->condition_.wait(lock);
56 }
57
58 T t = queue_.front();
59 queue_.pop();
60 return t;
61}
62
63template<typename T>
64bool BlockingQueue<T>::try_peek(T* t) {

Callers 15

coord_map_from_toFunction · 0.80
processFrameFunction · 0.80
postProcessFrameFunction · 0.80
buffer_and_orderFunction · 0.80
displayFrameFunction · 0.80
on_startMethod · 0.80
on_gradients_readyMethod · 0.80
InternalThreadEntryMethod · 0.80
read_oneMethod · 0.80
load_batchMethod · 0.80
InternalThreadEntryMethod · 0.80
Forward_cpuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected