| 39 | #endif |
| 40 | |
| 41 | void 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 | |
| 53 | void Object::decRef(bool dealloc) const noexcept |
| 54 | { |
no test coverage detected