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

#include <lockers.h>

Inheritance diagram for dart::WriteRwLocker:
dart::StackResource

Public Member Functions

 WriteRwLocker (ThreadState *thread_state, RwLock *rw_lock)
 
 ~WriteRwLocker ()
 
- 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 450 of file lockers.h.

Constructor & Destructor Documentation

◆ WriteRwLocker()

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

Definition at line 452 of file lockers.h.

453 : StackResource(thread_state), rw_lock_(rw_lock) {
454 rw_lock_->EnterWrite();
455 }
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~WriteRwLocker()

dart::WriteRwLocker::~WriteRwLocker ( )
inline

Definition at line 457 of file lockers.h.

457{ rw_lock_->LeaveWrite(); }

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