Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FLUTTER_ASSERT_ARC::MachThreads Class Reference

Public Member Functions

 MachThreads ()=default
 
 ~MachThreads ()
 

Public Attributes

thread_array_t threads = NULL
 
mach_msg_type_number_t thread_count = 0
 

Detailed Description

Definition at line 18 of file profiler_metrics_ios.mm.

Constructor & Destructor Documentation

◆ MachThreads()

FLUTTER_ASSERT_ARC::MachThreads::MachThreads ( )
default

◆ ~MachThreads()

FLUTTER_ASSERT_ARC::MachThreads::~MachThreads ( )
inline

Definition at line 25 of file profiler_metrics_ios.mm.

25 {
26 [[maybe_unused]] kern_return_t kernel_return_code = vm_deallocate(
27 mach_task_self(), reinterpret_cast<vm_offset_t>(threads), thread_count * sizeof(thread_t));
28 FML_DCHECK(kernel_return_code == KERN_SUCCESS) << "Failed to deallocate thread infos.";
29 }
#define FML_DCHECK(condition)
Definition logging.h:103

Member Data Documentation

◆ thread_count

mach_msg_type_number_t FLUTTER_ASSERT_ARC::MachThreads::thread_count = 0

Definition at line 21 of file profiler_metrics_ios.mm.

◆ threads

thread_array_t FLUTTER_ASSERT_ARC::MachThreads::threads = NULL

Definition at line 20 of file profiler_metrics_ios.mm.


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