52 #ifndef __PCL_ReferenceCounter_h
53 #define __PCL_ReferenceCounter_h
61 #ifdef __PCL_REFCOUNT_CHECK_DETACHMENT
64 # include <pcl/Diagnostics.h>
167 PCL_CHECK( m_count.Load() > 0 )
168 return m_count.Dereference();
191 return m_count.Load();
202 return RefCount() < 2;
216 return RefCountAtomic() < 2;
Atomic operations on integers.
Thread-safe reference counter for copy-on-write data structures.
bool IsUniqueAtomic() const
ReferenceCounter()=default
ReferenceCounter(const ReferenceCounter &)
int RefCountAtomic() const