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

Method waitAndThrow

core/device.cpp:350–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 }
349
350 void Device::waitAndThrow()
351 {
352 wait();
353
354 // If an asynchronous error was stored, throw it now
355 std::lock_guard<std::mutex> asyncErrorLock(asyncErrorMutex);
356 if (asyncError.code != Error::None)
357 {
358 const Error code = asyncError.code;
359 const std::string message = std::move(asyncError.message);
360 asyncError = {}; // clear the error
361 throw Exception(code, message);
362 }
363 }
364
365 void Device::syncAndThrow(SyncMode sync)
366 {

Callers 2

commitMethod · 0.80
oidnSyncDeviceFunction · 0.80

Calls 1

ExceptionFunction · 0.85

Tested by

no test coverage detected