MCPcopy Create free account
hub / github.com/RenderKit/oidn / submitUpdate

Method submitUpdate

core/progress.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void Progress::submitUpdate(Engine* engine, const Ref<Progress>& progress, size_t delta)
29 {
30 if (progress->isCancelled())
31 throw Exception(Error::Cancelled, "execution was cancelled");
32
33 if (!progress->started || delta != 0) // always submit the first update
34 {
35 engine->submitHostFunc([progress, delta]() { progress->update(delta); }, progress);
36 progress->started = true;
37 }
38 }
39
40OIDN_NAMESPACE_END

Callers

nothing calls this directly

Calls 4

ExceptionFunction · 0.85
isCancelledMethod · 0.80
submitHostFuncMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected