LLDB mainline
|
#include <QueueItem.h>
Public Member Functions | |
QueueItem (lldb::QueueSP queue_sp, lldb::ProcessSP process_sp, lldb::addr_t item_ref, lldb_private::Address address) | |
~QueueItem () | |
lldb::QueueItemKind | GetKind () |
Get the kind of work item this is. | |
void | SetKind (lldb::QueueItemKind item_kind) |
Set the type of work item this is. | |
lldb_private::Address & | GetAddress () |
Get the code address that will be executed when this work item is executed. | |
void | SetAddress (lldb_private::Address addr) |
Set the work item address for this object. | |
bool | IsValid () |
Check if this QueueItem object is valid. | |
lldb::ThreadSP | GetExtendedBacktraceThread (ConstString type) |
Get an extended backtrace thread for this queue item, if available. | |
void | SetItemThatEnqueuedThis (lldb::addr_t address_of_item) |
lldb::addr_t | GetItemThatEnqueuedThis () |
void | SetEnqueueingThreadID (lldb::tid_t tid) |
lldb::tid_t | GetEnqueueingThreadID () |
void | SetEnqueueingQueueID (lldb::queue_id_t qid) |
lldb::queue_id_t | GetEnqueueingQueueID () |
void | SetTargetQueueID (lldb::queue_id_t qid) |
void | SetStopID (uint32_t stop_id) |
uint32_t | GetStopID () |
void | SetEnqueueingBacktrace (std::vector< lldb::addr_t > backtrace) |
std::vector< lldb::addr_t > & | GetEnqueueingBacktrace () |
void | SetThreadLabel (std::string thread_name) |
std::string | GetThreadLabel () |
void | SetQueueLabel (std::string queue_name) |
std::string | GetQueueLabel () |
void | SetTargetQueueLabel (std::string queue_name) |
lldb::ProcessSP | GetProcessSP () |
Protected Member Functions | |
void | FetchEntireItem () |
Protected Attributes | |
lldb::QueueWP | m_queue_wp |
lldb::ProcessWP | m_process_wp |
lldb::addr_t | m_item_ref |
lldb_private::Address | m_address |
bool | m_have_fetched_entire_item |
lldb::QueueItemKind | m_kind |
lldb::addr_t | m_item_that_enqueued_this_ref |
lldb::tid_t | m_enqueueing_thread_id |
lldb::queue_id_t | m_enqueueing_queue_id |
lldb::queue_id_t | m_target_queue_id |
uint32_t | m_stop_id |
std::vector< lldb::addr_t > | m_backtrace |
std::string | m_thread_label |
std::string | m_queue_label |
std::string | m_target_queue_label |
Private Member Functions | |
QueueItem (const QueueItem &)=delete | |
const QueueItem & | operator= (const QueueItem &)=delete |
Definition at line 32 of file QueueItem.h.
QueueItem::QueueItem | ( | lldb::QueueSP | queue_sp, |
lldb::ProcessSP | process_sp, | ||
lldb::addr_t | item_ref, | ||
lldb_private::Address | address | ||
) |
Definition at line 17 of file QueueItem.cpp.
References m_process_wp, and m_queue_wp.
|
default |
|
privatedelete |
|
protected |
Definition at line 95 of file QueueItem.cpp.
References lldb_private::SystemRuntime::CompleteQueueItem(), m_have_fetched_entire_item, m_item_ref, and m_process_wp.
Referenced by GetEnqueueingBacktrace(), GetEnqueueingQueueID(), GetEnqueueingThreadID(), GetExtendedBacktraceThread(), GetItemThatEnqueuedThis(), GetKind(), GetQueueLabel(), GetStopID(), and GetThreadLabel().
Address & QueueItem::GetAddress | ( | ) |
Get the code address that will be executed when this work item is executed.
Definition at line 39 of file QueueItem.cpp.
References m_address.
std::vector< lldb::addr_t > & QueueItem::GetEnqueueingBacktrace | ( | ) |
Definition at line 78 of file QueueItem.cpp.
References FetchEntireItem(), and m_backtrace.
lldb::queue_id_t QueueItem::GetEnqueueingQueueID | ( | ) |
Definition at line 68 of file QueueItem.cpp.
References FetchEntireItem(), and m_enqueueing_queue_id.
lldb::tid_t QueueItem::GetEnqueueingThreadID | ( | ) |
Definition at line 63 of file QueueItem.cpp.
References FetchEntireItem(), and m_enqueueing_thread_id.
ThreadSP QueueItem::GetExtendedBacktraceThread | ( | ConstString | type | ) |
Get an extended backtrace thread for this queue item, if available.
If the backtrace/thread information was collected when this item was enqueued, this call will provide it.
[in] | type | The type of extended backtrace being requested, e.g. "libdispatch" or "pthread". |
Definition at line 43 of file QueueItem.cpp.
References FetchEntireItem(), and m_queue_wp.
lldb::addr_t QueueItem::GetItemThatEnqueuedThis | ( | ) |
Definition at line 58 of file QueueItem.cpp.
References FetchEntireItem(), and m_item_that_enqueued_this_ref.
QueueItemKind QueueItem::GetKind | ( | ) |
Get the kind of work item this is.
Definition at line 32 of file QueueItem.cpp.
References FetchEntireItem(), and m_kind.
ProcessSP QueueItem::GetProcessSP | ( | ) |
Definition at line 93 of file QueueItem.cpp.
References m_process_wp.
std::string QueueItem::GetQueueLabel | ( | ) |
Definition at line 88 of file QueueItem.cpp.
References FetchEntireItem(), and m_queue_label.
uint32_t QueueItem::GetStopID | ( | ) |
Definition at line 73 of file QueueItem.cpp.
References FetchEntireItem(), and m_stop_id.
std::string QueueItem::GetThreadLabel | ( | ) |
Definition at line 83 of file QueueItem.cpp.
References FetchEntireItem(), and m_thread_label.
|
inline |
Check if this QueueItem object is valid.
If the weak pointer to the parent Queue cannot be revivified, it is invalid.
Definition at line 78 of file QueueItem.h.
References m_queue_wp.
void QueueItem::SetAddress | ( | lldb_private::Address | addr | ) |
Set the work item address for this object.
[in] | addr | The address that will be invoked when this work item is executed. |
Definition at line 41 of file QueueItem.cpp.
References m_address.
|
inline |
Definition at line 116 of file QueueItem.h.
References m_backtrace.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 104 of file QueueItem.h.
References m_enqueueing_queue_id.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 100 of file QueueItem.h.
References m_enqueueing_thread_id.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 94 of file QueueItem.h.
References m_item_that_enqueued_this_ref.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
void QueueItem::SetKind | ( | lldb::QueueItemKind | item_kind | ) |
Set the type of work item this is.
[in] | item_kind | Set the kind of this work item object. |
Definition at line 37 of file QueueItem.cpp.
References m_kind.
|
inline |
Definition at line 126 of file QueueItem.h.
References m_queue_label.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 112 of file QueueItem.h.
References m_stop_id.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 110 of file QueueItem.h.
References m_target_queue_id.
|
inline |
Definition at line 130 of file QueueItem.h.
References m_target_queue_label.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
inline |
Definition at line 122 of file QueueItem.h.
References m_thread_label.
Referenced by SystemRuntimeMacOSX::CompleteQueueItem().
|
protected |
Definition at line 144 of file QueueItem.h.
Referenced by GetAddress(), and SetAddress().
|
protected |
Definition at line 156 of file QueueItem.h.
Referenced by GetEnqueueingBacktrace(), and SetEnqueueingBacktrace().
|
protected |
Definition at line 153 of file QueueItem.h.
Referenced by GetEnqueueingQueueID(), and SetEnqueueingQueueID().
|
protected |
Definition at line 151 of file QueueItem.h.
Referenced by GetEnqueueingThreadID(), and SetEnqueueingThreadID().
|
protected |
Definition at line 145 of file QueueItem.h.
Referenced by FetchEntireItem().
|
protected |
Definition at line 142 of file QueueItem.h.
Referenced by FetchEntireItem().
|
protected |
Definition at line 148 of file QueueItem.h.
Referenced by GetItemThatEnqueuedThis(), and SetItemThatEnqueuedThis().
|
protected |
Definition at line 147 of file QueueItem.h.
|
protected |
Definition at line 140 of file QueueItem.h.
Referenced by FetchEntireItem(), GetProcessSP(), and QueueItem().
|
protected |
Definition at line 158 of file QueueItem.h.
Referenced by GetQueueLabel(), and SetQueueLabel().
|
protected |
Definition at line 139 of file QueueItem.h.
Referenced by GetExtendedBacktraceThread(), IsValid(), and QueueItem().
|
protected |
Definition at line 155 of file QueueItem.h.
Referenced by GetStopID(), and SetStopID().
|
protected |
Definition at line 154 of file QueueItem.h.
Referenced by SetTargetQueueID().
|
protected |
Definition at line 159 of file QueueItem.h.
Referenced by SetTargetQueueLabel().
|
protected |
Definition at line 157 of file QueueItem.h.
Referenced by GetThreadLabel(), and SetThreadLabel().