* A RefCountable implementation that uses an atomic long * for ref counting. Does not support weak pointers. * If you need weak pointers support, please use SharedPtrRefCountable. */
| 39 | * If you need weak pointers support, please use SharedPtrRefCountable. |
| 40 | */ |
| 41 | class SimpleRefCountable : public RefCountable { |
| 42 | public: |
| 43 | SimpleRefCountable(); |
| 44 | ~SimpleRefCountable() override; |
| 45 | |
| 46 | void unsafeRetainInner() final; |
| 47 | void unsafeReleaseInner() final; |
| 48 | |
| 49 | long retainCount() const; |
| 50 | |
| 51 | private: |
| 52 | std::atomic_long _retainCount; |
| 53 | }; |
| 54 | |
| 55 | /** |
| 56 | * A RefCountable implementation that uses a non atomic |
nothing calls this directly
no outgoing calls
no test coverage detected