22 : m_threads(threads), m_mutex() {}
25 std::lock_guard<std::recursive_mutex> guard(
GetMutex());
30 std::lock_guard<std::recursive_mutex> guard(
GetMutex());
32 const uint32_t thread_index_id = thread_sp->GetIndexID();
39 return lhs->GetIndexID() < rhs->GetIndexID();
47 std::lock_guard<std::recursive_mutex> guard(
GetMutex());
55 std::lock_guard<std::recursive_mutex> guard(
GetMutex());
60 std::lock_guard<std::recursive_mutex> guard(
GetMutex());
void AddThreadSortedByIndexID(const lldb::ThreadSP &thread_sp)
virtual std::recursive_mutex & GetMutex() const
std::vector< lldb::ThreadSP > collection
lldb::ThreadSP GetThreadAtIndex(uint32_t idx)
void AddThread(const lldb::ThreadSP &thread_sp)
void InsertThread(const lldb::ThreadSP &thread_sp, uint32_t idx)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Thread > ThreadSP