Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkCachedData::AutoMutexWritable Class Reference

Public Member Functions

 AutoMutexWritable (const SkCachedData *cd)
 
 ~AutoMutexWritable ()
 
SkCachedDataget ()
 
SkCachedDataoperator-> ()
 

Detailed Description

Definition at line 45 of file SkCachedData.cpp.

Constructor & Destructor Documentation

◆ AutoMutexWritable()

SkCachedData::AutoMutexWritable::AutoMutexWritable ( const SkCachedData cd)
inline

Definition at line 47 of file SkCachedData.cpp.

47 : fCD(const_cast<SkCachedData*>(cd)) {
48 fCD->fMutex.acquire();
49 fCD->validate();
50 }
void validate() const
Definition: SkCachedData.h:87

◆ ~AutoMutexWritable()

SkCachedData::AutoMutexWritable::~AutoMutexWritable ( )
inline

Definition at line 51 of file SkCachedData.cpp.

51 {
52 fCD->validate();
53 fCD->fMutex.release();
54 }

Member Function Documentation

◆ get()

SkCachedData * SkCachedData::AutoMutexWritable::get ( )
inline

Definition at line 56 of file SkCachedData.cpp.

56{ return fCD; }

◆ operator->()

SkCachedData * SkCachedData::AutoMutexWritable::operator-> ( )
inline

Definition at line 57 of file SkCachedData.cpp.

57{ return fCD; }

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