MCPcopy Create free account
hub / github.com/RenderKit/embree / setThreadErrorCode

Method setThreadErrorCode

kernels/common/device.cpp:284–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 }
283
284 void Device::setThreadErrorCode(RTCError error, std::string const& msg)
285 {
286 RTCErrorMessage* stored_error = g_errorHandler.error();
287 if (stored_error->error == RTC_ERROR_NONE) {
288 stored_error->error = error;
289 if (msg != "")
290 stored_error->msg = msg;
291 }
292 }
293
294 RTCError Device::getThreadErrorCode()
295 {

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected