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

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

#include "llvm/ADT/IntrusiveRefCntPtr.h"

Inheritance diagram for llvm::ThreadSafeRefCountedBase< Derived >:
Inheritance graph
[legend]

Public Member Functions

unsigned UseCount () const
 
void Retain () const
 
void Release () const
 

Protected Member Functions

 ThreadSafeRefCountedBase ()=default
 
 ThreadSafeRefCountedBase (const ThreadSafeRefCountedBase &)
 
ThreadSafeRefCountedBaseoperator= (const ThreadSafeRefCountedBase &)=delete
 
 ~ThreadSafeRefCountedBase ()
 

Detailed Description

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

A thread-safe version of RefCountedBase.

Definition at line 108 of file IntrusiveRefCntPtr.h.

Constructor & Destructor Documentation

◆ ThreadSafeRefCountedBase() [1/2]

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

◆ ThreadSafeRefCountedBase() [2/2]

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

Definition at line 113 of file IntrusiveRefCntPtr.h.

◆ ~ThreadSafeRefCountedBase()

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

Definition at line 118 of file IntrusiveRefCntPtr.h.

References assert().

Member Function Documentation

◆ operator=()

template<class Derived >
ThreadSafeRefCountedBase & llvm::ThreadSafeRefCountedBase< Derived >::operator= ( const ThreadSafeRefCountedBase< Derived > &  )
protecteddelete

◆ Release()

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

◆ Retain()

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

Definition at line 131 of file IntrusiveRefCntPtr.h.

◆ UseCount()

template<class Derived >
unsigned llvm::ThreadSafeRefCountedBase< Derived >::UseCount ( ) const
inline

Definition at line 129 of file IntrusiveRefCntPtr.h.


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