MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / set

Method set

external/nvImageCodec/src/processing_results.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace nvimgcodec {
29
30 void ProcessingResultsPromise::set(int index, ProcessingResult res) {
31 if (is_set_[index].exchange(true))
32 throw std::runtime_error("Processing results for sample " + std::to_string(index) + " was already set.");
33 results_[index] = res.status_;
34 if (pending_.fetch_sub(1) == 1) { // last one
35 is_all_set_.store(true);
36 promise_impl_.set_value(results_);
37 }
38 }
39
40 void ProcessingResultsPromise::set(const std::vector<std::pair<int, nvimgcodecProcessingStatus_t>>& results) {
41 if (results.empty()) {

Callers 6

postSyncMethod · 0.45
setupSampleMethod · 0.45
batchProcessMethod · 0.45
decodeMethod · 0.45
imageReadyMethod · 0.45
encodeMethod · 0.45

Calls 4

to_stringFunction · 0.50
storeMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected