Chromium Embedded Framework (CEF)  131.2.1+ge081753+chromium-131.0.6778.13
base::cef_internal::Lock Class Reference

A convenient wrapper for an OS specific critical section. More...

#include "include/base/cef_lock.h"

Public Member Functions

 Lock ()
 
 Lock (const Lock &)=delete
 
Lockoperator= (const Lock &)=delete
 
 ~Lock ()
 
void Acquire ()
 
void Release ()
 
bool Try ()
 If the lock is not held, take it and return true. More...
 
void AssertAcquired () const
 

Detailed Description

A convenient wrapper for an OS specific critical section.

The only real intelligence in this class is in debug mode for the support for the AssertAcquired() method.

Constructor & Destructor Documentation

◆ Lock() [1/2]

base::cef_internal::Lock::Lock ( )
inline

◆ Lock() [2/2]

base::cef_internal::Lock::Lock ( const Lock )
delete

◆ ~Lock()

base::cef_internal::Lock::~Lock ( )
inline

Member Function Documentation

◆ Acquire()

void base::cef_internal::Lock::Acquire ( )
inline

◆ AssertAcquired()

void base::cef_internal::Lock::AssertAcquired ( ) const
inline

◆ operator=()

Lock& base::cef_internal::Lock::operator= ( const Lock )
delete

◆ Release()

void base::cef_internal::Lock::Release ( )
inline

◆ Try()

bool base::cef_internal::Lock::Try ( )
inline

If the lock is not held, take it and return true.

If the lock is already held by another thread, immediately return false. This must not be called by a thread already holding the lock (what happens is undefined and an assertion may fail).


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