Crashpad
Public Member Functions | Static Public Member Functions | List of all members
crashpad::internal::ThreadSnapshotIOS Class Referencefinal

A ThreadSnapshot of a thread on an iOS system. More...

#include "snapshot/ios/thread_snapshot_ios.h"

Inheritance diagram for crashpad::internal::ThreadSnapshotIOS:
crashpad::ThreadSnapshot

Public Member Functions

bool Initialize (thread_t thread)
 Initializes the object. More...
 
const CPUContextContext () const override
 Returns a CPUContext object corresponding to the thread’s CPU context. More...
 
const MemorySnapshotStack () const override
 Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack, or nullptr if no stack region is available. More...
 
uint64_t ThreadID () const override
 Returns the thread’s identifier. More...
 
int SuspendCount () const override
 Returns the thread’s suspend count. More...
 
int Priority () const override
 Returns the thread’s priority. More...
 
uint64_t ThreadSpecificDataAddress () const override
 Returns the base address of a region used to store thread-specific data.
 
std::vector< const MemorySnapshot * > ExtraMemory () const override
 Returns a vector of additional memory blocks that should be included in a minidump. More...
 

Static Public Member Functions

static thread_act_array_t GetThreads (mach_msg_type_number_t *count)
 Returns an array of thread_t threads. More...
 

Detailed Description

A ThreadSnapshot of a thread on an iOS system.

Member Function Documentation

◆ Context()

const CPUContext * crashpad::internal::ThreadSnapshotIOS::Context ( ) const
overridevirtual

Returns a CPUContext object corresponding to the thread’s CPU context.

The caller does not take ownership of this object, it is scoped to the lifetime of the ThreadSnapshot object that it was obtained from.

Implements crashpad::ThreadSnapshot.

◆ ExtraMemory()

std::vector< const MemorySnapshot * > crashpad::internal::ThreadSnapshotIOS::ExtraMemory ( ) const
overridevirtual

Returns a vector of additional memory blocks that should be included in a minidump.

Returns
A vector of MemorySnapshot objects that will be included in the crash dump. The caller does not take ownership of these objects, they are scoped to the lifetime of the ThreadSnapshot object that they were obtained from.

Implements crashpad::ThreadSnapshot.

◆ GetThreads()

thread_act_array_t crashpad::internal::ThreadSnapshotIOS::GetThreads ( mach_msg_type_number_t *  count)
static

Returns an array of thread_t threads.

Parameters
[out]countThe number of threads returned.
Returns
An array of of size count threads.

◆ Initialize()

bool crashpad::internal::ThreadSnapshotIOS::Initialize ( thread_t  thread)

Initializes the object.

thread The Mach thread used to initialize this object.

◆ Priority()

int crashpad::internal::ThreadSnapshotIOS::Priority ( ) const
overridevirtual

Returns the thread’s priority.

Threads with higher priorities will have higher priority values.

Implements crashpad::ThreadSnapshot.

◆ Stack()

const MemorySnapshot * crashpad::internal::ThreadSnapshotIOS::Stack ( ) const
overridevirtual

Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack, or nullptr if no stack region is available.

The caller does not take ownership of this object, it is scoped to the lifetime of the ThreadSnapshot object that it was obtained from.

Implements crashpad::ThreadSnapshot.

◆ SuspendCount()

int crashpad::internal::ThreadSnapshotIOS::SuspendCount ( ) const
overridevirtual

Returns the thread’s suspend count.

A suspend count of 0 denotes a schedulable (not suspended) thread.

Implements crashpad::ThreadSnapshot.

◆ ThreadID()

uint64_t crashpad::internal::ThreadSnapshotIOS::ThreadID ( ) const
overridevirtual

Returns the thread’s identifier.

Thread identifiers are at least unique within a process, and may be unique system-wide.

Implements crashpad::ThreadSnapshot.


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