MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / put

Method put

3rdparty/cppdap/src/chan.h:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68template <typename T>
69void Chan<T>::put(T&& in) {
70 std::unique_lock<std::mutex> lock(mutex);
71 auto notify = queue.size() == 0 && !closed;
72 queue.push(std::move(in));
73 if (notify) {
74 cv.notify_all();
75 }
76}
77
78template <typename T>
79void Chan<T>::put(const T& in) {

Callers 4

TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
mergePullRequestMethod · 0.45

Calls 2

sizeMethod · 0.45
pushMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36