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

#include <lockers.h>

Public Member Functions

 RwLock ()
 
 ~RwLock ()
 
bool IsCurrentThreadWriter ()
 

Friends

class ReadRwLocker
 
class WriteRwLocker
 

Detailed Description

Definition at line 294 of file lockers.h.

Constructor & Destructor Documentation

◆ RwLock()

dart::RwLock::RwLock ( )
inline

Definition at line 296 of file lockers.h.

296{}

◆ ~RwLock()

dart::RwLock::~RwLock ( )
inline

Definition at line 297 of file lockers.h.

297{}

Member Function Documentation

◆ IsCurrentThreadWriter()

bool dart::RwLock::IsCurrentThreadWriter ( )
inline

Definition at line 299 of file lockers.h.

299 {
300 return writer_id_ == OSThread::GetCurrentThreadId();
301 }
static ThreadId GetCurrentThreadId()

Friends And Related Function Documentation

◆ ReadRwLocker

friend class ReadRwLocker
friend

Definition at line 304 of file lockers.h.

◆ WriteRwLocker

friend class WriteRwLocker
friend

Definition at line 305 of file lockers.h.


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