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

Method try_pop

src/caffe/util/blocking_queue.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template<typename T>
31bool BlockingQueue<T>::try_pop(T* t) {
32 boost::mutex::scoped_lock lock(sync_->mutex_);
33
34 if (queue_.empty()) {
35 return false;
36 }
37
38 *t = queue_.front();
39 queue_.pop();
40 return true;
41}
42
43template<typename T>
44T BlockingQueue<T>::pop(const string& log_on_wait) {

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected