LLDB mainline
SBQueueItem.h
Go to the documentation of this file.
1//===-- SBQueueItem.h -------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_API_SBQUEUEITEM_H
10#define LLDB_API_SBQUEUEITEM_H
11
12#include "lldb/API/SBAddress.h"
13#include "lldb/API/SBDefines.h"
14
15namespace lldb_private {
16class QueueImpl;
17}
18
19namespace lldb {
20
22public:
24
26
27 explicit operator bool() const;
28
29 bool IsValid() const;
30
31 void Clear();
32
34
35 void SetKind(lldb::QueueItemKind kind);
36
37 lldb::SBAddress GetAddress() const;
38
39 void SetAddress(lldb::SBAddress addr);
40
41 SBThread GetExtendedBacktraceThread(const char *type);
42
43protected:
45
46 SBQueueItem(const lldb::QueueItemSP &queue_item_sp);
47
48 void SetQueueItem(const lldb::QueueItemSP &queue_item_sp);
49
50private:
52};
53
54} // namespace lldb
55
56#endif // LLDB_API_SBQUEUEITEM_H
#define LLDB_API
Definition: SBDefines.h:28
uint32_t GetKind(uint32_t data)
Return the type kind encoded in the given data.
lldb::QueueItemSP m_queue_item_sp
Definition: SBQueueItem.h:51
A class that represents a running process on the host machine.
Definition: SBAddress.h:15
QueueItemKind
Queue work item types.
std::shared_ptr< lldb_private::QueueItem > QueueItemSP
Definition: lldb-forward.h:398