Flutter Impeller
impeller::Lock Class Reference

#include <thread.h>

Public Member Functions

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

Detailed Description

Definition at line 75 of file thread.h.

Constructor & Destructor Documentation

◆ Lock()

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

Definition at line 77 of file thread.h.

77  : mutex_(mutex) {
78  mutex_.Lock();
79  }

◆ ~Lock()

impeller::Lock::~Lock ( )
inline

Definition at line 81 of file thread.h.

81 { mutex_.Unlock(); }

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