Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 1583 of file thread.h.

Constructor & Destructor Documentation

◆ RawReloadParticipationScope()

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

Definition at line 1585 of file thread.h.

1585 : thread_(thread) {
1586#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1587 if (thread->allow_reload_scope_depth_ == 0) {
1588 ASSERT(thread->current_safepoint_level() == SafepointLevel::kGCAndDeopt);
1589 }
1590 thread->allow_reload_scope_depth_++;
1591 ASSERT(thread->allow_reload_scope_depth_ >= 0);
1592#endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1593 }
#define ASSERT(E)
@ kGCAndDeopt
Definition thread.h:293

◆ ~RawReloadParticipationScope()

dart::RawReloadParticipationScope::~RawReloadParticipationScope ( )
inline

Definition at line 1595 of file thread.h.

1595 {
1596#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1597 thread_->allow_reload_scope_depth_ -= 1;
1598 ASSERT(thread_->allow_reload_scope_depth_ >= 0);
1599 if (thread_->allow_reload_scope_depth_ == 0) {
1601 }
1602#endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1603 }
SafepointLevel current_safepoint_level() const
Definition thread.h:1133

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