Flutter Engine
fml::SharedMutexPosix Class Reference

#include <shared_mutex_posix.h>

Inheritance diagram for fml::SharedMutexPosix:
fml::SharedMutex

Public Member Functions

virtual void Lock ()
 
virtual void LockShared ()
 
virtual void Unlock ()
 
virtual void UnlockShared ()
 
- Public Member Functions inherited from fml::SharedMutex
virtual ~SharedMutex ()=default
 

Friends

SharedMutexSharedMutex::Create ()
 

Additional Inherited Members

- Static Public Member Functions inherited from fml::SharedMutex
static SharedMutexCreate ()
 

Detailed Description

Definition at line 14 of file shared_mutex_posix.h.

Member Function Documentation

◆ Lock()

void fml::SharedMutexPosix::Lock ( )
virtual

Implements fml::SharedMutex.

Definition at line 19 of file shared_mutex_posix.cc.

19  {
20  pthread_rwlock_wrlock(&rwlock_);
21 }

◆ LockShared()

void fml::SharedMutexPosix::LockShared ( )
virtual

Implements fml::SharedMutex.

Definition at line 23 of file shared_mutex_posix.cc.

23  {
24  pthread_rwlock_rdlock(&rwlock_);
25 }

◆ Unlock()

void fml::SharedMutexPosix::Unlock ( )
virtual

Implements fml::SharedMutex.

Definition at line 27 of file shared_mutex_posix.cc.

27  {
28  pthread_rwlock_unlock(&rwlock_);
29 }

◆ UnlockShared()

void fml::SharedMutexPosix::UnlockShared ( )
virtual

Implements fml::SharedMutex.

Definition at line 31 of file shared_mutex_posix.cc.

31  {
32  pthread_rwlock_unlock(&rwlock_);
33 }

Friends And Related Function Documentation

◆ SharedMutex::Create


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