Lines Matching refs:thread_sp
97 ThreadSP thread_sp; in GetThreadAtIndex() local
99 thread_sp = m_threads[idx]; in GetThreadAtIndex()
100 return thread_sp; in GetThreadAtIndex()
109 ThreadSP thread_sp; in FindThreadByID() local
114 thread_sp = m_threads[idx]; in FindThreadByID()
118 return thread_sp; in FindThreadByID()
127 ThreadSP thread_sp; in FindThreadByProtocolID() local
132 thread_sp = m_threads[idx]; in FindThreadByProtocolID()
136 return thread_sp; in FindThreadByProtocolID()
145 ThreadSP thread_sp; in RemoveThreadByID() local
150 thread_sp = m_threads[idx]; in RemoveThreadByID()
155 return thread_sp; in RemoveThreadByID()
165 ThreadSP thread_sp; in RemoveThreadByProtocolID() local
170 thread_sp = m_threads[idx]; in RemoveThreadByProtocolID()
175 return thread_sp; in RemoveThreadByProtocolID()
179 ThreadSP thread_sp; in GetThreadSPForThreadPtr() local
187 thread_sp = m_threads[idx]; in GetThreadSPForThreadPtr()
192 return thread_sp; in GetThreadSPForThreadPtr()
198 ThreadSP thread_sp; in GetBackingThread() local
202 thread_sp = m_threads[idx]; in GetBackingThread()
206 return thread_sp; in GetBackingThread()
215 ThreadSP thread_sp; in FindThreadByIndexID() local
219 thread_sp = m_threads[idx]; in FindThreadByIndexID()
223 return thread_sp; in FindThreadByIndexID()
245 for (lldb::ThreadSP thread_sp : m_threads) { in ShouldStop() local
254 if (thread_sp->GetTemporaryResumeState() != eStateSuspended || in ShouldStop()
255 thread_sp->IsStillAtLastBreakpointHit()) in ShouldStop()
256 threads_copy.push_back(thread_sp); in ShouldStop()
299 ThreadSP thread_sp(*pos); in ShouldStop() local
300 thread_sp->GetStopInfo(); in ShouldStop()
304 ThreadSP thread_sp(*pos); in ShouldStop() local
326 if (thread_sp->GetProcess()->GetStopID() > 1) in ShouldStop()
329 did_anybody_stop_for_a_reason |= thread_sp->ThreadStoppedForAReason(); in ShouldStop()
331 const bool thread_should_stop = thread_sp->ShouldStop(event_ptr); in ShouldStop()
349 ThreadSP thread_sp(*pos); in ShouldStop() local
350 thread_sp->WillStop(); in ShouldStop()
373 ThreadSP thread_sp(*pos); in ShouldReportStop() local
374 const Vote vote = thread_sp->ShouldReportStop(event_ptr); in ShouldReportStop()
389 thread_sp->GetID(), vote, result); in ShouldReportStop()
404 ThreadSP thread_sp(*pos); in SetShouldReportStop() local
405 thread_sp->SetShouldReportStop(vote); in SetShouldReportStop()
556 ThreadSP thread_sp(*pos); in WillResume() local
557 if (thread_sp->GetResumeState() != eStateSuspended && in WillResume()
558 thread_sp->GetCurrentPlan()->StopOthers()) { in WillResume()
564 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended); in WillResume()
566 if (thread_sp == GetSelectedThread()) { in WillResume()
571 run_me_only_list.AddThread(thread_sp); in WillResume()
575 run_me_only_list.AddThread(thread_sp); in WillResume()
584 ThreadSP thread_sp(*pos); in WillResume() local
586 if (thread_sp->GetResumeState() != eStateSuspended) in WillResume()
587 run_state = thread_sp->GetCurrentPlan()->RunState(); in WillResume()
590 if (!thread_sp->ShouldResume(run_state)) in WillResume()
608 ThreadSP thread_sp(*pos); in WillResume() local
609 if (thread_sp == thread_to_run) { in WillResume()
610 if (!thread_sp->ShouldResume(thread_sp->GetCurrentPlan()->RunState())) in WillResume()
613 thread_sp->ShouldResume(eStateSuspended); in WillResume()
626 ThreadSP thread_sp(*pos); in DidResume() local
627 if (thread_sp->GetResumeState() != eStateSuspended) in DidResume()
628 thread_sp->DidResume(); in DidResume()
643 ThreadSP thread_sp(*pos); in DidStop() local
644 if (StateIsRunningState(thread_sp->GetState())) in DidStop()
645 thread_sp->DidStop(); in DidStop()
651 ThreadSP thread_sp = FindThreadByID(m_selected_tid); in GetSelectedThread() local
652 if (!thread_sp.get()) { in GetSelectedThread()
654 return thread_sp; in GetSelectedThread()
656 thread_sp = m_threads[0]; in GetSelectedThread()
658 return thread_sp; in GetSelectedThread()
754 lldb::ThreadSP thread_sp) in ExpressionExecutionThreadPusher() argument
756 if (thread_sp) { in ExpressionExecutionThreadPusher()
757 m_tid = thread_sp->GetID(); in ExpressionExecutionThreadPusher()
758 m_thread_list = &thread_sp->GetProcess()->GetThreadList(); in ExpressionExecutionThreadPusher()