GRPC Core  18.0.0
Public Member Functions | Friends
grpc_core::Mutex Class Reference

#include <sync.h>

Public Member Functions

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

Friends

class CondVar
 
gpr_muGetUnderlyingGprMu (Mutex *mutex)
 

Constructor & Destructor Documentation

◆ Mutex() [1/2]

grpc_core::Mutex::Mutex ( )
inline

◆ ~Mutex()

grpc_core::Mutex::~Mutex ( )
inline

◆ Mutex() [2/2]

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

Member Function Documentation

◆ Lock()

void grpc_core::Mutex::Lock ( )
inline

◆ operator=()

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

◆ TryLock()

bool grpc_core::Mutex::TryLock ( )
inline

◆ Unlock()

void grpc_core::Mutex::Unlock ( )
inline

Friends And Related Function Documentation

◆ CondVar

friend class CondVar
friend

◆ GetUnderlyingGprMu

gpr_mu* GetUnderlyingGprMu ( Mutex mutex)
friend

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