MCPcopy Create free account
hub / github.com/apache/singa / Push

Method Push

include/singa/utils/safe_queue.h:45–50  ·  view source on GitHub ↗

* Push an element into the queue. Blocking operation. * @return true if success; */

Source from the content-addressed store, hash-verified

43 * @return true if success;
44 */
45 bool Push(const T& e) {
46 std::lock_guard<std::mutex> lock(mutex_);
47 queue_.push(e);
48 condition_.notify_one();
49 return true;
50 }
51
52 /**
53 * Pop an element from the queue.

Callers 2

RunGraphMethod · 0.45
AnalyzeNodesMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected