Flutter Engine
The Flutter Engine
|
#include <message_handler.h>
Classes | |
class | AcquiredQueues |
Public Types | |
enum | MessageStatus { kOK , kError , kShutdown } |
typedef uword | CallbackData |
typedef MessageStatus(* | StartCallback) (CallbackData data) |
typedef void(* | EndCallback) (CallbackData data) |
Public Member Functions | |
virtual | ~MessageHandler () |
virtual const char * | name () const |
bool | Run (ThreadPool *pool, StartCallback start_callback, EndCallback end_callback, CallbackData data) |
MessageStatus | HandleNextMessage () |
MessageStatus | HandleOOBMessages () |
MessageStatus | PauseAndHandleAllMessages (int64_t timeout_millis) |
bool | HasOOBMessages () |
bool | HasMessages () |
virtual bool | KeepAliveLocked () |
void | RequestDeletion () |
bool | paused () const |
void | increment_paused () |
void | decrement_paused () |
void | DebugDump () |
bool | should_pause_on_start () const |
void | set_should_pause_on_start (bool should_pause_on_start) |
bool | is_paused_on_start () const |
bool | should_pause_on_exit () const |
void | set_should_pause_on_exit (bool should_pause_on_exit) |
bool | is_paused_on_exit () const |
int64_t | paused_timestamp () const |
bool | ShouldPauseOnStart (MessageStatus status) const |
bool | ShouldPauseOnExit (MessageStatus status) const |
void | PausedOnStart (bool paused) |
void | PausedOnExit (bool paused) |
Static Public Member Functions | |
static const char * | MessageStatusString (MessageStatus status) |
Protected Member Functions | |
MessageHandler () | |
virtual bool | IsCurrentIsolate () const |
virtual Isolate * | isolate () const |
void | PostMessage (std::unique_ptr< Message > message, bool before_events=false) |
void | ClosePort (Dart_Port port) |
void | CloseAllPorts () |
virtual void | MessageNotify (Message::Priority priority) |
virtual MessageStatus | HandleMessage (std::unique_ptr< Message > message)=0 |
virtual void | NotifyPauseOnStart () |
virtual void | NotifyPauseOnExit () |
Thread * | thread () const |
Friends | |
class | PortMap |
class | MessageHandlerTestPeer |
class | MessageHandlerTask |
template<typename GCVisitorType > | |
void | MournFinalizerEntry (GCVisitorType *, FinalizerEntryPtr) |
Definition at line 20 of file message_handler.h.
Definition at line 37 of file message_handler.h.
typedef void(* dart::MessageHandler::EndCallback) (CallbackData data) |
Definition at line 39 of file message_handler.h.
typedef MessageStatus(* dart::MessageHandler::StartCallback) (CallbackData data) |
Definition at line 38 of file message_handler.h.
|
protected |
Definition at line 55 of file message_handler.cc.
|
virtual |
Definition at line 79 of file message_handler.cc.
|
protected |
Definition at line 543 of file message_handler.cc.
|
protected |
Definition at line 532 of file message_handler.cc.
void dart::MessageHandler::DebugDump | ( | ) |
Definition at line 570 of file message_handler.cc.
|
inline |
Definition at line 101 of file message_handler.h.
|
protectedpure virtual |
MessageHandler::MessageStatus dart::MessageHandler::HandleNextMessage | ( | ) |
Definition at line 290 of file message_handler.cc.
MessageHandler::MessageStatus dart::MessageHandler::HandleOOBMessages | ( | ) |
Definition at line 338 of file message_handler.cc.
bool dart::MessageHandler::HasMessages | ( | ) |
Definition at line 385 of file message_handler.cc.
bool dart::MessageHandler::HasOOBMessages | ( | ) |
Definition at line 372 of file message_handler.cc.
|
inline |
Definition at line 100 of file message_handler.h.
|
inline |
Definition at line 123 of file message_handler.h.
|
inline |
Definition at line 115 of file message_handler.h.
|
inlineprotectedvirtual |
Reimplemented in dart::IsolateMessageHandler.
Definition at line 178 of file message_handler.h.
|
inlineprotectedvirtual |
Reimplemented in dart::SendAndExitMessagesHandler, dart::IsolateMessageHandler, and dart::ServiceTestMessageHandler.
Definition at line 181 of file message_handler.h.
|
inlinevirtual |
Reimplemented in dart::IsolateMessageHandler.
Definition at line 88 of file message_handler.h.
|
protectedvirtual |
Reimplemented in dart::IsolateMessageHandler, dart::TestMessageHandler, and dart::PortTestMessageHandler.
Definition at line 97 of file message_handler.cc.
|
static |
Definition at line 41 of file message_handler.cc.
|
virtual |
Reimplemented in dart::SendAndExitMessagesHandler, dart::IsolateMessageHandler, and dart::NativeMessageHandler.
Definition at line 87 of file message_handler.cc.
|
inlineprotectedvirtual |
Reimplemented in dart::IsolateMessageHandler.
Definition at line 206 of file message_handler.h.
|
inlineprotectedvirtual |
Reimplemented in dart::IsolateMessageHandler.
Definition at line 205 of file message_handler.h.
MessageHandler::MessageStatus dart::MessageHandler::PauseAndHandleAllMessages | ( | int64_t | timeout_millis | ) |
Definition at line 302 of file message_handler.cc.
|
inline |
Definition at line 98 of file message_handler.h.
|
inline |
Definition at line 126 of file message_handler.h.
void dart::MessageHandler::PausedOnExit | ( | bool | paused | ) |
Definition at line 605 of file message_handler.cc.
void dart::MessageHandler::PausedOnStart | ( | bool | paused | ) |
Definition at line 574 of file message_handler.cc.
|
protected |
Definition at line 130 of file message_handler.cc.
void dart::MessageHandler::RequestDeletion | ( | ) |
Definition at line 555 of file message_handler.cc.
bool dart::MessageHandler::Run | ( | ThreadPool * | pool, |
StartCallback | start_callback, | ||
EndCallback | end_callback, | ||
CallbackData | data | ||
) |
Definition at line 101 of file message_handler.cc.
|
inline |
Definition at line 119 of file message_handler.h.
|
inline |
Definition at line 111 of file message_handler.h.
|
inline |
Definition at line 117 of file message_handler.h.
|
inline |
Definition at line 109 of file message_handler.h.
bool dart::MessageHandler::ShouldPauseOnExit | ( | MessageStatus | status | ) | const |
Definition at line 362 of file message_handler.cc.
bool dart::MessageHandler::ShouldPauseOnStart | ( | MessageStatus | status | ) | const |
Definition at line 351 of file message_handler.cc.
|
inlineprotected |
Definition at line 209 of file message_handler.h.
|
friend |
Definition at line 216 of file message_handler.h.
|
friend |
Definition at line 215 of file message_handler.h.
|
friend |
Definition at line 162 of file gc_shared.h.
|
friend |
Definition at line 214 of file message_handler.h.