| 37 | mCount.fetch_add(1, std::memory_order_relaxed); |
| 38 | } |
| 39 | inline void decStrong(__attribute__((unused)) const void* id) const { |
| 40 | if (mCount.fetch_sub(1, std::memory_order_release) == 1) { |
| 41 | std::atomic_thread_fence(std::memory_order_acquire); |
| 42 | delete static_cast<const T*>(this); |
| 43 | } |
| 44 | } |
| 45 | //! DEBUGGING ONLY: Get current strong ref count. |
| 46 | inline int32_t getStrongCount() const { |
| 47 | return mCount.load(std::memory_order_relaxed); |
no outgoing calls
no test coverage detected