MCPcopy Create free account
hub / github.com/Kitware/CMake / put

Method put

Utilities/cmcppdap/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 7

TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
WriteLiteralTextBlockMethod · 0.45
StartGroupMethod · 0.45
EndGroupMethod · 0.45

Calls 2

moveFunction · 0.85
sizeMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36