LLDB mainline
lldb_private::ThreadCollection Class Reference

#include <ThreadCollection.h>

Inheritance diagram for lldb_private::ThreadCollection:
[legend]

Public Types

typedef std::vector< lldb::ThreadSPcollection
typedef LockingAdaptedIterable< std::recursive_mutex, collectionThreadIterable

Public Member Functions

 ThreadCollection ()
 ThreadCollection (collection threads)
virtual ~ThreadCollection ()=default
uint32_t GetSize ()
void AddThread (const lldb::ThreadSP &thread_sp)
void AddThreadSortedByIndexID (const lldb::ThreadSP &thread_sp)
void InsertThread (const lldb::ThreadSP &thread_sp, uint32_t idx)
lldb::ThreadSP GetThreadAtIndex (uint32_t idx)
virtual ThreadIterable Threads ()
virtual std::recursive_mutex & GetMutex () const

Protected Attributes

collection m_threads
std::recursive_mutex m_mutex

Detailed Description

Definition at line 20 of file ThreadCollection.h.

Member Typedef Documentation

◆ collection

Definition at line 22 of file ThreadCollection.h.

◆ ThreadIterable

Constructor & Destructor Documentation

◆ ThreadCollection() [1/2]

ThreadCollection::ThreadCollection ( )

◆ ThreadCollection() [2/2]

ThreadCollection::ThreadCollection ( collection threads)

Definition at line 21 of file ThreadCollection.cpp.

References m_mutex, and m_threads.

◆ ~ThreadCollection()

virtual lldb_private::ThreadCollection::~ThreadCollection ( )
virtualdefault

Member Function Documentation

◆ AddThread()

◆ AddThreadSortedByIndexID()

void ThreadCollection::AddThreadSortedByIndexID ( const lldb::ThreadSP & thread_sp)

◆ GetMutex()

virtual std::recursive_mutex & lldb_private::ThreadCollection::GetMutex ( ) const
inlinevirtual

Reimplemented in lldb_private::ThreadList.

Definition at line 49 of file ThreadCollection.h.

References m_mutex.

Referenced by AddThread(), AddThreadSortedByIndexID(), GetSize(), GetThreadAtIndex(), InsertThread(), and Threads().

◆ GetSize()

uint32_t ThreadCollection::GetSize ( )

Definition at line 54 of file ThreadCollection.cpp.

References GetMutex(), and m_threads.

◆ GetThreadAtIndex()

ThreadSP ThreadCollection::GetThreadAtIndex ( uint32_t idx)

Definition at line 59 of file ThreadCollection.cpp.

References GetMutex(), and m_threads.

◆ InsertThread()

void ThreadCollection::InsertThread ( const lldb::ThreadSP & thread_sp,
uint32_t idx )

Definition at line 45 of file ThreadCollection.cpp.

References GetMutex(), and m_threads.

◆ Threads()

Member Data Documentation

◆ m_mutex

std::recursive_mutex lldb_private::ThreadCollection::m_mutex
mutableprotected

Definition at line 53 of file ThreadCollection.h.

Referenced by GetMutex(), ThreadCollection(), and ThreadCollection().

◆ m_threads


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