Struct lldb::SBQueueItem
source · [−]pub struct SBQueueItem {
pub raw: SBQueueItemRef,
}
Expand description
A work item enqueued on a libdispatch aka Grand Central Dispatch (GCD) queue.
Most often, this will be a function or block.
“enqueued” here means that the work item has been added to a queue but it has not yet started executing. When it is “dequeued”, execution of the item begins.
Fields
raw: SBQueueItemRef
The underlying raw SBQueueItemRef
.
Implementations
sourceimpl SBQueueItem
impl SBQueueItem
sourcepub fn kind(&self) -> QueueItemKind
pub fn kind(&self) -> QueueItemKind
The kind of this work item.
sourcepub fn address(&self) -> Option<SBAddress>
pub fn address(&self) -> Option<SBAddress>
The code address that will be executed when this work item is executed.
Not all queue items will have an address associated with them.
QueueItemKind::Function
and QueueItemKind::Block
work items
should have an address.
sourcepub fn extended_backtrace_thread(&self, thread_type: &str) -> Option<SBThread>
pub fn extended_backtrace_thread(&self, thread_type: &str) -> Option<SBThread>
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.
The thread_type
will typically be one of "libdispatch"
or
"pthread"
.
Trait Implementations
sourceimpl Clone for SBQueueItem
impl Clone for SBQueueItem
sourcefn clone(&self) -> SBQueueItem
fn clone(&self) -> SBQueueItem
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more