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

#include <lockers.h>

Public Member Functions

 MonitorLocker (Monitor *monitor)
 
virtual ~MonitorLocker ()
 
Monitor::WaitResult Wait (int64_t millis=Monitor::kNoTimeout)
 
void Notify ()
 
void NotifyAll ()
 

Detailed Description

Definition at line 29 of file lockers.h.

Constructor & Destructor Documentation

◆ MonitorLocker()

dart::bin::MonitorLocker::MonitorLocker ( Monitor monitor)
inlineexplicit

Definition at line 31 of file lockers.h.

31 : monitor_(monitor) {
32 ASSERT(monitor != nullptr);
33 monitor_->Enter();
34 }
#define ASSERT(E)

◆ ~MonitorLocker()

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

Definition at line 36 of file lockers.h.

36{ monitor_->Exit(); }

Member Function Documentation

◆ Notify()

void dart::bin::MonitorLocker::Notify ( )
inline

Definition at line 42 of file lockers.h.

42{ monitor_->Notify(); }

◆ NotifyAll()

void dart::bin::MonitorLocker::NotifyAll ( )
inline

Definition at line 44 of file lockers.h.

44{ monitor_->NotifyAll(); }

◆ Wait()

Monitor::WaitResult dart::bin::MonitorLocker::Wait ( int64_t  millis = Monitor::kNoTimeout)
inline

Definition at line 38 of file lockers.h.

38 {
39 return monitor_->Wait(millis);
40 }
WaitResult Wait(int64_t millis)

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