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

Method get

Utilities/cmcppdap/include/dap/future.h:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99template <typename T>
100T future<T>::get() {
101 std::unique_lock<std::mutex> lock(state->mutex);
102 state->cv.wait(lock, [&] { return state->hasVal; });
103 return state->val;
104}
105
106template <typename T>
107void future<T>::wait() const {

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected