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

#include <log.h>

Inheritance diagram for dart::LogBlock:
dart::StackResource

Public Member Functions

 LogBlock (ThreadState *thread, Log *log)
 
 LogBlock ()
 
 ~LogBlock ()
 
- 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 75 of file log.h.

Constructor & Destructor Documentation

◆ LogBlock() [1/2]

dart::LogBlock::LogBlock ( ThreadState thread,
Log log 
)
inline

Definition at line 77 of file log.h.

78 : StackResource(thread), log_(log), cursor_(log->cursor()) {
79 Initialize();
80 }
ThreadState * thread() const
Definition allocation.h:33
StackResource(ThreadState *thread)
Definition allocation.h:25

◆ LogBlock() [2/2]

dart::LogBlock::LogBlock ( )
inline

Definition at line 82 of file log.h.

84 log_(Log::Current()),
85 cursor_(Log::Current()->cursor()) {
86 Initialize();
87 }
static Log * Current()
Definition log.cc:75
static ThreadState * Current()

◆ ~LogBlock()

dart::LogBlock::~LogBlock ( )

Definition at line 230 of file log.cc.

230 {
231 log_->DisableManualFlush(cursor_);
232}

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