Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::Lock Class Reference

#include <thread.h>

Public Member Functions

 Lock (Mutex &mutex) IPLR_ACQUIRE(mutex)
 
 ~Lock () IPLR_RELEASE()
 

Detailed Description

Definition at line 73 of file thread.h.

Constructor & Destructor Documentation

◆ Lock()

impeller::Lock::Lock ( Mutex &  mutex)
inlineexplicit

Definition at line 75 of file thread.h.

75 : mutex_(mutex) {
76 mutex_.Lock();
77 }

◆ ~Lock()

impeller::Lock::~Lock ( )
inline

Definition at line 79 of file thread.h.

79{ mutex_.Unlock(); }

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