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

#include <sync.h>

Public Member Functions

void Lock () ABSL_EXCLUSIVE_LOCK_FUNCTION()
 
 Mutex ()
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
void Unlock () ABSL_UNLOCK_FUNCTION()
 
 ~Mutex ()
 

Private Attributes

union {
   std::mutex   do_not_use_sth_
 
   gpr_mu   mu_
 
}; 
 

Friends

class CondVar
 

Detailed Description

Definition at line 59 of file include/grpcpp/impl/codegen/sync.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

grpc::internal::Mutex::Mutex ( )
inline

Definition at line 61 of file include/grpcpp/impl/codegen/sync.h.

◆ ~Mutex()

grpc::internal::Mutex::~Mutex ( )
inline

Definition at line 62 of file include/grpcpp/impl/codegen/sync.h.

◆ Mutex() [2/2]

grpc::internal::Mutex::Mutex ( const Mutex )
delete

Member Function Documentation

◆ Lock()

void grpc::internal::Mutex::Lock ( )
inline

Definition at line 67 of file include/grpcpp/impl/codegen/sync.h.

◆ operator=()

Mutex& grpc::internal::Mutex::operator= ( const Mutex )
delete

◆ Unlock()

void grpc::internal::Mutex::Unlock ( )
inline

Definition at line 70 of file include/grpcpp/impl/codegen/sync.h.

Friends And Related Function Documentation

◆ CondVar

friend class CondVar
friend

Definition at line 83 of file include/grpcpp/impl/codegen/sync.h.

Member Data Documentation

◆ @5

union { ... }

◆ do_not_use_sth_

std::mutex grpc::internal::Mutex::do_not_use_sth_

Definition at line 77 of file include/grpcpp/impl/codegen/sync.h.

◆ mu_

gpr_mu grpc::internal::Mutex::mu_

Definition at line 76 of file include/grpcpp/impl/codegen/sync.h.


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


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