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

Function getSysctl

common/platform.h:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306#if defined(__APPLE__)
307 template<typename T>
308 inline bool getSysctl(const char* name, T& value)
309 {
310 int64_t result = 0;
311 size_t size = sizeof(result);
312
313 if (sysctlbyname(name, &result, &size, nullptr, 0) != 0)
314 return false;
315
316 value = T(result);
317 return true;
318 }
319#endif
320
321 inline bool isEnvVar(const std::string& name)

Callers 1

ThreadAffinityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected