Chromium Embedded Framework (CEF)  131.2.1+ge081753+chromium-131.0.6778.13
CefRefCount Class Reference

Class that implements atomic reference counting. More...

#include "include/cef_base.h"

Public Member Functions

 CefRefCount ()=default
 
 CefRefCount (const CefRefCount &)=delete
 
CefRefCountoperator= (const CefRefCount &)=delete
 
void AddRef () const
 Increment the reference count. More...
 
bool Release () const
 Decrement the reference count. More...
 
bool HasOneRef () const
 Returns true if the reference count is 1. More...
 
bool HasAtLeastOneRef () const
 Returns true if the reference count is at least 1. More...
 
int SubtleRefCountForDebug () const
 Returns the current reference count (with no barriers). More...
 

Detailed Description

Class that implements atomic reference counting.

Constructor & Destructor Documentation

◆ CefRefCount() [1/2]

CefRefCount::CefRefCount ( )
default

◆ CefRefCount() [2/2]

CefRefCount::CefRefCount ( const CefRefCount )
delete

Member Function Documentation

◆ AddRef()

void CefRefCount::AddRef ( ) const
inline

Increment the reference count.

◆ HasAtLeastOneRef()

bool CefRefCount::HasAtLeastOneRef ( ) const
inline

Returns true if the reference count is at least 1.

◆ HasOneRef()

bool CefRefCount::HasOneRef ( ) const
inline

Returns true if the reference count is 1.

◆ operator=()

CefRefCount& CefRefCount::operator= ( const CefRefCount )
delete

◆ Release()

bool CefRefCount::Release ( ) const
inline

Decrement the reference count.

Returns true if the reference count is 0.

◆ SubtleRefCountForDebug()

int CefRefCount::SubtleRefCountForDebug ( ) const
inline

Returns the current reference count (with no barriers).

This is subtle, and should be used only for debugging.


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