MCPcopy Create free account
hub / github.com/BVLC/caffe / pop

Method pop

src/caffe/util/blocking_queue.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

coord_map_from_toFunction · 0.80
InternalThreadEntryMethod · 0.80
Forward_cpuMethod · 0.80
try_popMethod · 0.80
UpdatePreprocessorMethod · 0.80
UpdateMethod · 0.80
_GetTextInsideFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected