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

Method push

src/caffe/util/blocking_queue.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template<typename T>
23void BlockingQueue<T>::push(const T& t) {
24 boost::mutex::scoped_lock lock(sync_->mutex_);
25 queue_.push(t);
26 lock.unlock();
27 sync_->condition_.notify_one();
28}
29
30template<typename T>
31bool BlockingQueue<T>::try_pop(T* t) {

Callers 3

InternalThreadEntryMethod · 0.80
Forward_cpuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected