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

#include <eventhandler.h>

Public Member Functions

 TimeoutQueue ()
 
 ~TimeoutQueue ()
 
bool HasTimeout () const
 
int64_t CurrentTimeout () const
 
Dart_Port CurrentPort () const
 
void RemoveCurrent ()
 
void UpdateTimeout (Dart_Port port, int64_t timeout)
 

Detailed Description

Definition at line 63 of file eventhandler.h.

Constructor & Destructor Documentation

◆ TimeoutQueue()

dart::bin::TimeoutQueue::TimeoutQueue ( )
inline

Definition at line 65 of file eventhandler.h.

65{}

◆ ~TimeoutQueue()

dart::bin::TimeoutQueue::~TimeoutQueue ( )
inline

Definition at line 67 of file eventhandler.h.

67 {
68 while (HasTimeout())
70 }
bool HasTimeout() const
Definition: eventhandler.h:72

Member Function Documentation

◆ CurrentPort()

Dart_Port dart::bin::TimeoutQueue::CurrentPort ( ) const
inline

Definition at line 79 of file eventhandler.h.

79 {
80 ASSERT(!timeouts_.IsEmpty());
81 return timeouts_.Minimum().value;
82 }
const Entry & Minimum() const
bool IsEmpty() const
#define ASSERT(E)

◆ CurrentTimeout()

int64_t dart::bin::TimeoutQueue::CurrentTimeout ( ) const
inline

Definition at line 74 of file eventhandler.h.

74 {
75 ASSERT(!timeouts_.IsEmpty());
76 return timeouts_.Minimum().priority;
77 }

◆ HasTimeout()

bool dart::bin::TimeoutQueue::HasTimeout ( ) const
inline

Definition at line 72 of file eventhandler.h.

72{ return !timeouts_.IsEmpty(); }

◆ RemoveCurrent()

void dart::bin::TimeoutQueue::RemoveCurrent ( )
inline

Definition at line 84 of file eventhandler.h.

84{ timeouts_.RemoveMinimum(); }

◆ UpdateTimeout()

void dart::bin::TimeoutQueue::UpdateTimeout ( Dart_Port  port,
int64_t  timeout 
)
inline

Definition at line 86 of file eventhandler.h.

86 {
87 if (timeout < 0) {
88 timeouts_.RemoveByValue(port);
89 } else {
91 }
92 }
bool RemoveByValue(const V &value)
bool InsertOrChangePriority(const P &priority, const V &value)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service port
Definition: switches.h:87
def timeout(deadline, cmd)

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