MCPcopy Create free account
hub / github.com/HexHive/NASS / decStrong

Method decStrong

binderlib/include_android9/utils/LightRefBase.h:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 3

~spMethod · 0.45
StrongPointer.hFile · 0.45
clearMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected