17 ThreadSpec::OptionNames::LastOptionName)]{
"Index",
"ID",
"Name",
27 llvm::StringRef queue_name;
29 std::unique_ptr<ThreadSpec> thread_spec_up(
new ThreadSpec());
33 thread_spec_up->SetIndex(index);
38 thread_spec_up->SetTID(tid);
43 thread_spec_up->SetName(name);
48 thread_spec_up->SetQueueName(queue_name);
50 return thread_spec_up;
95 const char *name = thread.
GetName();
148 s->
Printf(
"thread name: \"%s\" ", name);
152 s->
Printf(
"queue name: \"%s\" ", queue_name);
static llvm::raw_ostream & error(Stream &strm)
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
bool GetValueForKeyAsInteger(llvm::StringRef key, IntType &result) const
bool GetValueForKeyAsString(llvm::StringRef key, llvm::StringRef &result) const
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
bool HasSpecification() const
bool NameMatches(const char *name) const
bool TIDMatches(lldb::tid_t thread_id) const
StructuredData::ObjectSP SerializeToStructuredData()
bool ThreadPassesBasicTests(Thread &thread) const
bool QueueNameMatches(const char *queue_name) const
uint32_t GetIndex() const
static const char * GetKey(OptionNames enum_value)
const char * GetName() const
bool IndexMatches(uint32_t index) const
void GetDescription(Stream *s, lldb::DescriptionLevel level) const
const char * GetQueueName() const
static const char * g_option_names[(size_t) OptionNames::LastOptionName]
static std::unique_ptr< ThreadSpec > CreateFromStructuredData(const StructuredData::Dictionary &data_dict, Status &error)
lldb::tid_t GetTID() const
virtual const char * GetQueueName()
Retrieve the Queue name for the queue currently using this Thread.
uint32_t GetIndexID() const
virtual const char * GetName()
#define LLDB_INVALID_THREAD_ID
A class that represents a running process on the host machine.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
lldb::user_id_t GetID() const
Get accessor for the user ID.