Public Member Functions | Private Attributes | Friends | List of all members
grpc_core::Mutex Class Reference

#include <sync.h>

Public Member Functions

void AssertHeld () ABSL_ASSERT_EXCLUSIVE_LOCK()
 
void Lock () ABSL_EXCLUSIVE_LOCK_FUNCTION()
 
 Mutex ()
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
bool TryLock () ABSL_EXCLUSIVE_TRYLOCK_FUNCTION(true)
 
void Unlock () ABSL_UNLOCK_FUNCTION()
 
 ~Mutex ()
 

Private Attributes

gpr_mu mu_
 

Friends

class CondVar
 
gpr_muGetUnderlyingGprMu (Mutex *mutex)
 

Detailed Description

Definition at line 61 of file src/core/lib/gprpp/sync.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

grpc_core::Mutex::Mutex ( )
inline

Definition at line 63 of file src/core/lib/gprpp/sync.h.

◆ ~Mutex()

grpc_core::Mutex::~Mutex ( )
inline

Definition at line 64 of file src/core/lib/gprpp/sync.h.

◆ Mutex() [2/2]

grpc_core::Mutex::Mutex ( const Mutex )
delete

Member Function Documentation

◆ AssertHeld()

void grpc_core::Mutex::AssertHeld ( )
inline

Definition at line 74 of file src/core/lib/gprpp/sync.h.

◆ Lock()

void grpc_core::Mutex::Lock ( )
inline

Definition at line 69 of file src/core/lib/gprpp/sync.h.

◆ operator=()

Mutex& grpc_core::Mutex::operator= ( const Mutex )
delete

◆ TryLock()

bool grpc_core::Mutex::TryLock ( )
inline

Definition at line 71 of file src/core/lib/gprpp/sync.h.

◆ Unlock()

void grpc_core::Mutex::Unlock ( )
inline

Definition at line 70 of file src/core/lib/gprpp/sync.h.

Friends And Related Function Documentation

◆ CondVar

friend class CondVar
friend

Definition at line 79 of file src/core/lib/gprpp/sync.h.

◆ GetUnderlyingGprMu

gpr_mu* GetUnderlyingGprMu ( Mutex mutex)
friend

Definition at line 86 of file src/core/lib/gprpp/sync.h.

Member Data Documentation

◆ mu_

gpr_mu grpc_core::Mutex::mu_
private

Definition at line 77 of file src/core/lib/gprpp/sync.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36