Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::RegisterRunningIsolatesVisitor Class Reference
Inheritance diagram for dart::RegisterRunningIsolatesVisitor:
dart::IsolateVisitor

Public Member Functions

 RegisterRunningIsolatesVisitor (Thread *thread)
 
virtual void VisitIsolate (Isolate *isolate)
 
void RegisterIsolates ()
 
- Public Member Functions inherited from dart::IsolateVisitor
 IsolateVisitor ()
 
virtual ~IsolateVisitor ()
 
virtual void VisitIsolate (Isolate *isolate)=0
 

Additional Inherited Members

- Protected Member Functions inherited from dart::IsolateVisitor
bool IsSystemIsolate (Isolate *isolate) const
 

Detailed Description

Definition at line 27 of file vmservice.cc.

Constructor & Destructor Documentation

◆ RegisterRunningIsolatesVisitor()

dart::RegisterRunningIsolatesVisitor::RegisterRunningIsolatesVisitor ( Thread thread)
inlineexplicit

Definition at line 29 of file vmservice.cc.

31 zone_(thread->zone()),
32 register_function_(Function::Handle(thread->zone())),
33 service_isolate_(thread->isolate()) {}
static Object & Handle()
Definition: object.h:407

Member Function Documentation

◆ RegisterIsolates()

void dart::RegisterRunningIsolatesVisitor::RegisterIsolates ( )
inline

Definition at line 41 of file vmservice.cc.

41 {
42 ServiceIsolate::RegisterRunningIsolates(isolate_ports_, isolate_names_);
43 }
static void RegisterRunningIsolates(const GrowableArray< Dart_Port > &isolate_ports, const GrowableArray< const String * > &isolate_names)

◆ VisitIsolate()

virtual void dart::RegisterRunningIsolatesVisitor::VisitIsolate ( Isolate isolate)
inlinevirtual

Implements dart::IsolateVisitor.

Definition at line 35 of file vmservice.cc.

35 {
36 isolate_ports_.Add(isolate->main_port());
37 isolate_names_.Add(&String::Handle(zone_, String::New(isolate->name())));
38 isolate->set_is_service_registered(true);
39 }
void Add(const T &value)
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
Definition: object.cc:23698

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