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

Method error

kernels/common/state.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 RTCErrorMessage* State::ErrorHandler::error()
27 {
28 RTCErrorMessage* stored_error = (RTCErrorMessage*) getTls(thread_error);
29 if (stored_error) {
30 return stored_error;
31 }
32
33 Lock<MutexSys> lock(errors_mutex);
34 stored_error = new RTCErrorMessage(RTC_ERROR_NONE, "");
35 thread_errors.push_back(stored_error);
36 setTls(thread_error,stored_error);
37 return stored_error;
38 }
39
40 State::State ()
41 : enabled_cpu_features(getCPUFeatures()),

Callers 6

setDeviceErrorCodeMethod · 0.80
getDeviceErrorCodeMethod · 0.80
setThreadErrorCodeMethod · 0.80
getThreadErrorCodeMethod · 0.80

Calls 3

getTlsFunction · 0.85
setTlsFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected