MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / incRef

Method incRef

Source/Falcor/Core/Object.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#endif
40
41void Object::incRef() const
42{
43 uint32_t refCount = mRefCount.fetch_add(1);
44#if FALCOR_ENABLE_OBJECT_TRACKING
45 if (refCount == 0)
46 {
47 std::lock_guard<std::mutex> lock(sTrackedObjectsMutex);
48 sTrackedObjects.insert(this);
49 }
50#endif
51}
52
53void Object::decRef(bool dealloc) const noexcept
54{

Callers 1

DeviceMethod · 0.45

Calls 3

getStackTraceFunction · 0.85
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected