Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
dart::Monitor Class Reference

#include <os_thread.h>

Public Types

enum  WaitResult { kNotified , kTimedOut }
 

Public Member Functions

 Monitor ()
 
 ~Monitor ()
 
bool IsOwnedByCurrentThread () const
 

Static Public Attributes

static constexpr int64_t kNoTimeout = 0
 

Friends

class MonitorLocker
 
class SafepointMonitorLocker
 
class SafepointRwLock
 
void Dart_TestMonitor ()
 

Detailed Description

Definition at line 357 of file os_thread.h.

Member Enumeration Documentation

◆ WaitResult

Enumerator
kNotified 
kTimedOut 

Definition at line 359 of file os_thread.h.

Constructor & Destructor Documentation

◆ Monitor()

dart::Monitor::Monitor ( )

◆ ~Monitor()

dart::Monitor::~Monitor ( )

Member Function Documentation

◆ IsOwnedByCurrentThread()

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

Definition at line 371 of file os_thread.h.

371 {
372 UNREACHABLE();
373 return false;
374 }
#define UNREACHABLE()
Definition: assert.h:248

Friends And Related Function Documentation

◆ Dart_TestMonitor

void Dart_TestMonitor ( )
friend

◆ MonitorLocker

friend class MonitorLocker
friend

Definition at line 395 of file os_thread.h.

◆ SafepointMonitorLocker

friend class SafepointMonitorLocker
friend

Definition at line 396 of file os_thread.h.

◆ SafepointRwLock

friend class SafepointRwLock
friend

Definition at line 397 of file os_thread.h.

Member Data Documentation

◆ kNoTimeout

constexpr int64_t dart::Monitor::kNoTimeout = 0
staticconstexpr

Definition at line 361 of file os_thread.h.


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