LLVM API Documentation
A thread-safe version of llvm::RefCountedBase
.
More...
#include <IntrusiveRefCntPtr.h>
Public Member Functions | |
void | Retain () const |
void | Release () const |
Protected Member Functions | |
ThreadSafeRefCountedBase () |
A thread-safe version of llvm::RefCountedBase
.
A generic base class for objects that wish to have their lifetimes managed using reference counts. Classes subclass ThreadSafeRefCountedBase
to obtain such functionality, and are typically handled with IntrusiveRefCntPtr
"smart pointers" which automatically handle the management of reference counts.
Definition at line 101 of file IntrusiveRefCntPtr.h.
llvm::ThreadSafeRefCountedBase< Derived >::ThreadSafeRefCountedBase | ( | ) | [inline, protected] |
Definition at line 105 of file IntrusiveRefCntPtr.h.
void llvm::ThreadSafeRefCountedBase< Derived >::Release | ( | ) | const [inline] |
Definition at line 110 of file IntrusiveRefCntPtr.h.
void llvm::ThreadSafeRefCountedBase< Derived >::Retain | ( | ) | const [inline] |
Definition at line 108 of file IntrusiveRefCntPtr.h.