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

Public Member Functions

 IsolateKillerVisitor (Isolate::LibMsgId msg_id, bool kill_system_isolates=false)
 
 IsolateKillerVisitor (Isolate *isolate, Isolate::LibMsgId msg_id)
 
virtual ~IsolateKillerVisitor ()
 
void VisitIsolate (Isolate *isolate)
 
- 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 3653 of file isolate.cc.

Constructor & Destructor Documentation

◆ IsolateKillerVisitor() [1/2]

dart::IsolateKillerVisitor::IsolateKillerVisitor ( Isolate::LibMsgId  msg_id,
bool  kill_system_isolates = false 
)
inline

Definition at line 3655 of file isolate.cc.

3657 : target_(nullptr),
3658 msg_id_(msg_id),
3659 kill_system_isolates_(kill_system_isolates) {}

◆ IsolateKillerVisitor() [2/2]

dart::IsolateKillerVisitor::IsolateKillerVisitor ( Isolate isolate,
Isolate::LibMsgId  msg_id 
)
inline

Definition at line 3661 of file isolate.cc.

3662 : target_(isolate), msg_id_(msg_id), kill_system_isolates_(false) {
3663 ASSERT(isolate != Dart::vm_isolate());
3664 }
static Isolate * vm_isolate()
Definition: dart.h:68
#define ASSERT(E)

◆ ~IsolateKillerVisitor()

virtual dart::IsolateKillerVisitor::~IsolateKillerVisitor ( )
inlinevirtual

Definition at line 3666 of file isolate.cc.

3666{}

Member Function Documentation

◆ VisitIsolate()

void dart::IsolateKillerVisitor::VisitIsolate ( Isolate isolate)
inlinevirtual

Implements dart::IsolateVisitor.

Definition at line 3668 of file isolate.cc.

3668 {
3669 MonitorLocker ml(Isolate::isolate_creation_monitor_);
3670 ASSERT(isolate != nullptr);
3671 if (ShouldKill(isolate)) {
3672 if (isolate->AcceptsMessagesLocked()) {
3673 isolate->KillLocked(msg_id_);
3674 }
3675 }
3676 }

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