MCPcopy Create free account
hub / github.com/NVIDIA/DALI / SetResult

Method SetResult

include/dali/core/exec/tasking/task.h:271–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 */
270 template <typename F, typename... Args>
271 void SetResult(F &&f, Args &&...args) {
272 assert(state_ == TaskState::Running);
273 assert(results_.NumValues() == 1 && results_[0]);
274 results_[0]->SetResultOf([&]() { return std::forward<F>(f)(std::forward<Args>(args)...); });
275 }
276
277 template <int i, typename... T>
278 static void UnpackResults(TaskResults &r, std::tuple<T...> &&t) {

Callers 1

TaskMethod · 0.80

Calls 2

NumValuesMethod · 0.80
SetResultOfMethod · 0.80

Tested by

no test coverage detected