blob: 0124c1c90dd270b574129e873e7ed4ae5b7f5b36 [file] [log] [blame]
//===-- SBQueue.h -----------------------------------------------*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef LLDB_SBQueue_h_
#define LLDB_SBQueue_h_
#include <vector>
#include "lldb/API/SBDefines.h"
#include "lldb/lldb-forward.h"
namespace lldb {
class LLDB_API SBQueue {
SBQueue(const QueueSP &queue_sp);
SBQueue(const SBQueue &rhs);
const SBQueue &operator=(const lldb::SBQueue &rhs);
explicit operator bool() const;
bool IsValid() const;
void Clear();
lldb::SBProcess GetProcess();
lldb::queue_id_t GetQueueID() const;
const char *GetName() const;
uint32_t GetIndexID() const;
uint32_t GetNumThreads();
lldb::SBThread GetThreadAtIndex(uint32_t);
uint32_t GetNumPendingItems();
lldb::SBQueueItem GetPendingItemAtIndex(uint32_t);
uint32_t GetNumRunningItems();
lldb::QueueKind GetKind();
friend class SBProcess;
friend class SBThread;
void SetQueue(const lldb::QueueSP &queue_sp);
std::shared_ptr<lldb_private::QueueImpl> m_opaque_sp;
} // namespace lldb
#endif // LLDB_SBQueue_h_