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

#include <thread.h>

Public Member Functions

 RawReloadParticipationScope (Thread *thread)
 
 ~RawReloadParticipationScope ()
 

Detailed Description

Definition at line 1605 of file thread.h.

Constructor & Destructor Documentation

◆ RawReloadParticipationScope()

dart::RawReloadParticipationScope::RawReloadParticipationScope ( Thread thread)
inlineexplicit

Definition at line 1607 of file thread.h.

1607 : thread_(thread) {
1608#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1609 if (thread->allow_reload_scope_depth_ == 0) {
1610 ASSERT(thread->current_safepoint_level() == SafepointLevel::kGCAndDeopt);
1611 }
1612 thread->allow_reload_scope_depth_++;
1613 ASSERT(thread->allow_reload_scope_depth_ >= 0);
1614#endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1615 }
#define ASSERT(E)
@ kGCAndDeopt
Definition: thread.h:293

◆ ~RawReloadParticipationScope()

dart::RawReloadParticipationScope::~RawReloadParticipationScope ( )
inline

Definition at line 1617 of file thread.h.

1617 {
1618#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1619 thread_->allow_reload_scope_depth_ -= 1;
1620 ASSERT(thread_->allow_reload_scope_depth_ >= 0);
1621 if (thread_->allow_reload_scope_depth_ == 0) {
1623 }
1624#endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1625 }
SafepointLevel current_safepoint_level() const
Definition: thread.h:1146

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