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

Method memoryMonitor

kernels/common/device.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 void Device::memoryMonitor(ssize_t bytes, bool post)
331 {
332 if (State::memory_monitor_function && bytes != 0) {
333 if (!State::memory_monitor_function(State::memory_monitor_userptr,bytes,post)) {
334 if (bytes > 0) { // only throw exception when we allocate memory to never throw inside a destructor
335 throw_RTCError(RTC_ERROR_OUT_OF_MEMORY,"memory monitor forced termination");
336 }
337 }
338 }
339 }
340
341 size_t getMaxNumThreads()
342 {

Callers 15

rthwifAllocAccelBufferFunction · 0.45
rthwifFreeAccelBufferFunction · 0.45
allocMethod · 0.45
freeMethod · 0.45
InstanceArrayMethod · 0.45
~InstanceArrayMethod · 0.45
setInstancedScenesMethod · 0.45
allocateMethod · 0.45
deallocateMethod · 0.45
createMethod · 0.45
clear_blockMethod · 0.45
mallocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected