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

#include <os_thread.h>

Public Member Functions

 Mutex (NOT_IN_PRODUCT(const char *name="anonymous mutex"))
 
 ~Mutex ()
 
bool IsOwnedByCurrentThread () const
 

Friends

class MallocLocker
 
class MutexLocker
 
class SafepointMutexLocker
 
class OSThreadIterator
 
class TimelineEventRecorder
 
class TimelineEventRingRecorder
 
class PageSpace
 
void Dart_TestMutex ()
 

Detailed Description

Definition at line 40 of file os_thread.h.

Constructor & Destructor Documentation

◆ Mutex()

dart::Mutex::Mutex ( NOT_IN_PRODUCT(const char *name="anonymous mutex")  )
explicit

◆ ~Mutex()

dart::Mutex::~Mutex ( )

Member Function Documentation

◆ IsOwnedByCurrentThread()

bool dart::Mutex::IsOwnedByCurrentThread ( ) const
inline

Definition at line 402 of file os_thread.h.

402 {
403#if defined(DEBUG)
404 return owner_ == OSThread::GetCurrentThreadId();
405#else
406 UNREACHABLE();
407 return false;
408#endif
409}
#define UNREACHABLE()
Definition: assert.h:248
static ThreadId GetCurrentThreadId()

Friends And Related Function Documentation

◆ Dart_TestMutex

void Dart_TestMutex ( )
friend

◆ MallocLocker

friend class MallocLocker
friend

Definition at line 58 of file os_thread.h.

◆ MutexLocker

friend class MutexLocker
friend

Definition at line 59 of file os_thread.h.

◆ OSThreadIterator

friend class OSThreadIterator
friend

Definition at line 61 of file os_thread.h.

◆ PageSpace

friend class PageSpace
friend

Definition at line 64 of file os_thread.h.

◆ SafepointMutexLocker

friend class SafepointMutexLocker
friend

Definition at line 60 of file os_thread.h.

◆ TimelineEventRecorder

friend class TimelineEventRecorder
friend

Definition at line 62 of file os_thread.h.

◆ TimelineEventRingRecorder

friend class TimelineEventRingRecorder
friend

Definition at line 63 of file os_thread.h.


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