| 105 | |
| 106 | template <typename T> |
| 107 | void future<T>::wait() const { |
| 108 | std::unique_lock<std::mutex> lock(state->mutex); |
| 109 | state->cv.wait(lock, [&] { return state->hasVal; }); |
| 110 | } |
| 111 | |
| 112 | template <typename T> |
| 113 | template <class Rep, class Period> |
no outgoing calls