proxygen
PosixMutex Struct Reference

Public Member Functions

 PosixMutex ()
 
 ~PosixMutex ()
 
void lock ()
 
void unlock ()
 
void lock_shared ()
 
void unlock_shared ()
 

Public Attributes

pthread_mutex_t lock_
 

Detailed Description

Definition at line 500 of file SharedMutexTest.cpp.

Constructor & Destructor Documentation

PosixMutex::PosixMutex ( )
inline

Definition at line 503 of file SharedMutexTest.cpp.

503  {
504  pthread_mutex_init(&lock_, nullptr);
505  }
pthread_mutex_t lock_
PosixMutex::~PosixMutex ( )
inline

Definition at line 507 of file SharedMutexTest.cpp.

507  {
508  pthread_mutex_destroy(&lock_);
509  }
pthread_mutex_t lock_

Member Function Documentation

void PosixMutex::lock ( )
inline

Definition at line 511 of file SharedMutexTest.cpp.

511  {
512  pthread_mutex_lock(&lock_);
513  }
pthread_mutex_t lock_
void PosixMutex::lock_shared ( )
inline

Definition at line 519 of file SharedMutexTest.cpp.

519  {
520  pthread_mutex_lock(&lock_);
521  }
pthread_mutex_t lock_
void PosixMutex::unlock ( )
inline

Definition at line 515 of file SharedMutexTest.cpp.

515  {
516  pthread_mutex_unlock(&lock_);
517  }
pthread_mutex_t lock_
void PosixMutex::unlock_shared ( )
inline

Definition at line 523 of file SharedMutexTest.cpp.

References Atom.

523  {
524  pthread_mutex_unlock(&lock_);
525  }
pthread_mutex_t lock_

Member Data Documentation

pthread_mutex_t PosixMutex::lock_

Definition at line 501 of file SharedMutexTest.cpp.


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