LLDB  mainline
Public Member Functions | Static Public Member Functions | List of all members
lldb_private::ThreadSpec Class Reference

#include <ThreadSpec.h>

Public Member Functions

 ThreadSpec ()
 
 ThreadSpec (const ThreadSpec &rhs)
 
const ThreadSpecoperator= (const ThreadSpec &rhs)
 
StructuredData::ObjectSP SerializeToStructuredData ()
 
void SetIndex (uint32_t index)
 
void SetTID (lldb::tid_t tid)
 
void SetName (llvm::StringRef name)
 
void SetQueueName (llvm::StringRef queue_name)
 
uint32_t GetIndex () const
 
lldb::tid_t GetTID () const
 
const char * GetName () const
 
const char * GetQueueName () const
 
bool TIDMatches (lldb::tid_t thread_id) const
 
bool TIDMatches (Thread &thread) const
 
bool IndexMatches (uint32_t index) const
 
bool IndexMatches (Thread &thread) const
 
bool NameMatches (const char *name) const
 
bool NameMatches (Thread &thread) const
 
bool QueueNameMatches (const char *queue_name) const
 
bool QueueNameMatches (Thread &thread) const
 
bool ThreadPassesBasicTests (Thread &thread) const
 
bool HasSpecification () const
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) const
 

Static Public Member Functions

static std::unique_ptr< ThreadSpecCreateFromStructuredData (const StructuredData::Dictionary &data_dict, Status &error)
 
static const char * GetSerializationKey ()
 

Detailed Description

Definition at line 33 of file ThreadSpec.h.

Constructor & Destructor Documentation

◆ ThreadSpec() [1/2]

ThreadSpec::ThreadSpec ( )

Definition at line 20 of file ThreadSpec.cpp.

Referenced by CreateFromStructuredData().

◆ ThreadSpec() [2/2]

ThreadSpec::ThreadSpec ( const ThreadSpec rhs)

Definition at line 24 of file ThreadSpec.cpp.

Member Function Documentation

◆ CreateFromStructuredData()

std::unique_ptr< ThreadSpec > ThreadSpec::CreateFromStructuredData ( const StructuredData::Dictionary data_dict,
Status error 
)
static

◆ GetDescription()

void ThreadSpec::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
) const

◆ GetIndex()

uint32_t lldb_private::ThreadSpec::GetIndex ( ) const
inline

◆ GetName()

const char * ThreadSpec::GetName ( ) const

◆ GetQueueName()

const char * ThreadSpec::GetQueueName ( ) const

◆ GetSerializationKey()

static const char* lldb_private::ThreadSpec::GetSerializationKey ( )
inlinestatic

◆ GetTID()

lldb::tid_t lldb_private::ThreadSpec::GetTID ( ) const
inline

◆ HasSpecification()

bool ThreadSpec::HasSpecification ( ) const

Definition at line 140 of file ThreadSpec.cpp.

References LLDB_INVALID_THREAD_ID, and UINT32_MAX.

Referenced by GetDescription(), QueueNameMatches(), and ThreadPassesBasicTests().

◆ IndexMatches() [1/2]

bool lldb_private::ThreadSpec::IndexMatches ( uint32_t  index) const
inline

Definition at line 74 of file ThreadSpec.h.

References UINT32_MAX.

Referenced by IndexMatches(), and ThreadPassesBasicTests().

◆ IndexMatches() [2/2]

bool ThreadSpec::IndexMatches ( Thread thread) const

Definition at line 98 of file ThreadSpec.cpp.

References lldb_private::Thread::GetIndexID(), IndexMatches(), and UINT32_MAX.

◆ NameMatches() [1/2]

bool lldb_private::ThreadSpec::NameMatches ( const char *  name) const
inline

Definition at line 83 of file ThreadSpec.h.

Referenced by NameMatches(), and ThreadPassesBasicTests().

◆ NameMatches() [2/2]

bool ThreadSpec::NameMatches ( Thread thread) const

Definition at line 105 of file ThreadSpec.cpp.

References lldb_private::Thread::GetName(), and NameMatches().

◆ operator=()

const ThreadSpec & ThreadSpec::operator= ( const ThreadSpec rhs)

Definition at line 28 of file ThreadSpec.cpp.

◆ QueueNameMatches() [1/2]

bool lldb_private::ThreadSpec::QueueNameMatches ( const char *  queue_name) const
inline

◆ QueueNameMatches() [2/2]

bool ThreadSpec::QueueNameMatches ( Thread thread) const

Definition at line 113 of file ThreadSpec.cpp.

References lldb_private::Thread::GetQueueName(), and QueueNameMatches().

◆ SerializeToStructuredData()

StructuredData::ObjectSP ThreadSpec::SerializeToStructuredData ( )

Definition at line 67 of file ThreadSpec.cpp.

References LLDB_INVALID_THREAD_ID, and UINT32_MAX.

◆ SetIndex()

void lldb_private::ThreadSpec::SetIndex ( uint32_t  index)
inline

◆ SetName()

void lldb_private::ThreadSpec::SetName ( llvm::StringRef  name)
inline

◆ SetQueueName()

void lldb_private::ThreadSpec::SetQueueName ( llvm::StringRef  queue_name)
inline

◆ SetTID()

void lldb_private::ThreadSpec::SetTID ( lldb::tid_t  tid)
inline

◆ ThreadPassesBasicTests()

bool ThreadSpec::ThreadPassesBasicTests ( Thread thread) const

◆ TIDMatches() [1/2]

bool lldb_private::ThreadSpec::TIDMatches ( lldb::tid_t  thread_id) const
inline

Definition at line 65 of file ThreadSpec.h.

References LLDB_INVALID_THREAD_ID.

Referenced by ThreadPassesBasicTests(), and TIDMatches().

◆ TIDMatches() [2/2]

bool ThreadSpec::TIDMatches ( Thread thread) const

The documentation for this class was generated from the following files: