Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::MutexLocker Class Reference

#include <lockers.h>

Public Member Functions

 MutexLocker (Mutex *mutex)
 
virtual ~MutexLocker ()
 

Detailed Description

Definition at line 14 of file lockers.h.

Constructor & Destructor Documentation

◆ MutexLocker()

dart::bin::MutexLocker::MutexLocker ( Mutex mutex)
inlineexplicit

Definition at line 16 of file lockers.h.

16 : mutex_(mutex) {
17 ASSERT(mutex != nullptr);
18 mutex_->Lock();
19 }
#define ASSERT(E)

◆ ~MutexLocker()

virtual dart::bin::MutexLocker::~MutexLocker ( )
inlinevirtual

Definition at line 21 of file lockers.h.

21{ mutex_->Unlock(); }

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