Flutter Engine
The Flutter Engine
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 1528 of file thread.h.

Constructor & Destructor Documentation

◆ DisableThreadInterruptsScope()

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

Definition at line 1481 of file thread.cc.

1483 if (thread != nullptr) {
1484 OSThread* os_thread = thread->os_thread();
1485 ASSERT(os_thread != nullptr);
1486 os_thread->DisableThreadInterrupts();
1487 }
1488}
ThreadState * thread() const
Definition: allocation.h:33
StackResource(ThreadState *thread)
Definition: allocation.h:25
OSThread * os_thread() const
Definition: thread_state.h:33
#define ASSERT(E)

◆ ~DisableThreadInterruptsScope()

dart::DisableThreadInterruptsScope::~DisableThreadInterruptsScope ( )

Definition at line 1490 of file thread.cc.

1490 {
1491 if (thread() != nullptr) {
1492 OSThread* os_thread = thread()->os_thread();
1493 ASSERT(os_thread != nullptr);
1494 os_thread->EnableThreadInterrupts();
1495 }
1496}

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