Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkAutoSpinlock Class Reference

#include <SkSpinlock.h>

Public Member Functions

 SkAutoSpinlock (SkSpinlock &mutex) SK_ACQUIRE(mutex)
 
 ~SkAutoSpinlock () SK_RELEASE_CAPABILITY()
 

Detailed Description

Definition at line 49 of file SkSpinlock.h.

Constructor & Destructor Documentation

◆ SkAutoSpinlock()

SkAutoSpinlock::SkAutoSpinlock ( SkSpinlock &  mutex)
inline

Definition at line 51 of file SkSpinlock.h.

51: fSpinlock(mutex) { fSpinlock.acquire(); }

◆ ~SkAutoSpinlock()

SkAutoSpinlock::~SkAutoSpinlock ( )
inline

Definition at line 52 of file SkSpinlock.h.

52{ fSpinlock.release(); }

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