Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 401 of file os_thread.h.

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

Friends And Related Symbol 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: