LLVM API Documentation

Public Member Functions | Protected Member Functions
llvm::ThreadSafeRefCountedBase< Derived > Class Template Reference

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

#include <IntrusiveRefCntPtr.h>

List of all members.

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


Constructor & Destructor Documentation

template<class Derived >
llvm::ThreadSafeRefCountedBase< Derived >::ThreadSafeRefCountedBase ( ) [inline, protected]

Definition at line 105 of file IntrusiveRefCntPtr.h.


Member Function Documentation

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

Definition at line 110 of file IntrusiveRefCntPtr.h.

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

Definition at line 108 of file IntrusiveRefCntPtr.h.


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