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

Method peek

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

Source from the content-addressed store, hash-verified

74
75template<typename T>
76T BlockingQueue<T>::peek() {
77 boost::mutex::scoped_lock lock(sync_->mutex_);
78
79 while (queue_.empty()) {
80 sync_->condition_.wait(lock);
81 }
82
83 return queue_.front();
84}
85
86template<typename T>
87size_t BlockingQueue<T>::size() const {

Callers 2

DataLayerSetUpMethod · 0.45
load_batchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected