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

#include <thread.h>

Inheritance diagram for dart::DisableThreadInterruptsScope:
dart::StackResource

Public Member Functions

 DisableThreadInterruptsScope (Thread *thread)
 
 ~DisableThreadInterruptsScope ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 1506 of file thread.h.

Constructor & Destructor Documentation

◆ DisableThreadInterruptsScope()

dart::DisableThreadInterruptsScope::DisableThreadInterruptsScope ( Thread thread)
explicit

Definition at line 1408 of file thread.cc.

1410 if (thread != nullptr) {
1411 OSThread* os_thread = thread->os_thread();
1412 ASSERT(os_thread != nullptr);
1413 os_thread->DisableThreadInterrupts();
1414 }
1415}
ThreadState * thread() const
Definition allocation.h:33
StackResource(ThreadState *thread)
Definition allocation.h:25
OSThread * os_thread() const
#define ASSERT(E)

◆ ~DisableThreadInterruptsScope()

dart::DisableThreadInterruptsScope::~DisableThreadInterruptsScope ( )

Definition at line 1417 of file thread.cc.

1417 {
1418 if (thread() != nullptr) {
1419 OSThread* os_thread = thread()->os_thread();
1420 ASSERT(os_thread != nullptr);
1421 os_thread->EnableThreadInterrupts();
1422 }
1423}

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