Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:42

0001 //===-- SBQueueItem.h -------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBQUEUEITEM_H
0010 #define LLDB_API_SBQUEUEITEM_H
0011 
0012 #include "lldb/API/SBAddress.h"
0013 #include "lldb/API/SBDefines.h"
0014 
0015 namespace lldb_private {
0016 class QueueImpl;
0017 }
0018 
0019 namespace lldb {
0020 
0021 class LLDB_API SBQueueItem {
0022 public:
0023   SBQueueItem();
0024 
0025   ~SBQueueItem();
0026 
0027   explicit operator bool() const;
0028 
0029   bool IsValid() const;
0030 
0031   void Clear();
0032 
0033   lldb::QueueItemKind GetKind() const;
0034 
0035   void SetKind(lldb::QueueItemKind kind);
0036 
0037   lldb::SBAddress GetAddress() const;
0038 
0039   void SetAddress(lldb::SBAddress addr);
0040 
0041   SBThread GetExtendedBacktraceThread(const char *type);
0042 
0043 protected:
0044   friend class lldb_private::QueueImpl;
0045 
0046   SBQueueItem(const lldb::QueueItemSP &queue_item_sp);
0047 
0048   void SetQueueItem(const lldb::QueueItemSP &queue_item_sp);
0049 
0050 private:
0051   lldb::QueueItemSP m_queue_item_sp;
0052 };
0053 
0054 } // namespace lldb
0055 
0056 #endif // LLDB_API_SBQUEUEITEM_H