LLVM  3.7.0
Public Member Functions | Protected Member Functions | List of all members
llvm::ThreadSafeRefCountedBase< Derived > Class Template Reference

A thread-safe version of llvm::RefCountedBase. More...

#include <IntrusiveRefCntPtr.h>

Public Member Functions

void Retain () const
 
void Release () const
 

Protected Member Functions

 ThreadSafeRefCountedBase ()
 

Detailed Description

template<class Derived>
class llvm::ThreadSafeRefCountedBase< Derived >

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 100 of file IntrusiveRefCntPtr.h.

Constructor & Destructor Documentation

template<class Derived >
llvm::ThreadSafeRefCountedBase< Derived >::ThreadSafeRefCountedBase ( )
inlineprotected

Definition at line 104 of file IntrusiveRefCntPtr.h.

Member Function Documentation

template<class Derived >
void llvm::ThreadSafeRefCountedBase< Derived >::Release ( ) const
inline

Definition at line 109 of file IntrusiveRefCntPtr.h.

template<class Derived >
void llvm::ThreadSafeRefCountedBase< Derived >::Retain ( ) const
inline

Definition at line 107 of file IntrusiveRefCntPtr.h.


The documentation for this class was generated from the following file: