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

#include <lockers.h>

Inheritance diagram for dart::ReadRwLocker:
dart::StackResource

Public Member Functions

 ReadRwLocker (ThreadState *thread_state, RwLock *rw_lock)
 
 ~ReadRwLocker ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 403 of file lockers.h.

Constructor & Destructor Documentation

◆ ReadRwLocker()

dart::ReadRwLocker::ReadRwLocker ( ThreadState thread_state,
RwLock rw_lock 
)
inline

Definition at line 405 of file lockers.h.

406 : StackResource(thread_state), rw_lock_(rw_lock) {
407 rw_lock_->EnterRead();
408 }
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~ReadRwLocker()

dart::ReadRwLocker::~ReadRwLocker ( )
inline

Definition at line 409 of file lockers.h.

409{ rw_lock_->LeaveRead(); }

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