Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::VMTagScope Class Reference

#include <tags.h>

Inheritance diagram for dart::VMTagScope:
dart::ThreadStackResource

Public Member Functions

 VMTagScope (Thread *thread, uword tag, bool conditional_set=true)
 
 ~VMTagScope ()
 

Detailed Description

Definition at line 79 of file tags.h.

Constructor & Destructor Documentation

◆ VMTagScope()

dart::VMTagScope::VMTagScope ( Thread thread,
uword  tag,
bool  conditional_set = true 
)

Definition at line 80 of file tags.cc.

81 : ThreadStackResource(thread) {
82 if (thread != nullptr) {
83 ASSERT(isolate_group() != nullptr);
84 previous_tag_ = thread->vm_tag();
85 if (conditional_set) {
86 thread->set_vm_tag(tag);
87 }
88 }
89}
IsolateGroup * isolate_group() const
void set_vm_tag(uword tag)
Definition thread.h:809
uword vm_tag() const
Definition thread.h:808
#define ASSERT(E)

◆ ~VMTagScope()

dart::VMTagScope::~VMTagScope ( )

Definition at line 91 of file tags.cc.

91 {
92 if (thread() != nullptr) {
93 ASSERT(isolate_group() != nullptr);
94 thread()->set_vm_tag(previous_tag_);
95 }
96}

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