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
256 if (thread_sp->GetTemporaryResumeState() != eStateSuspended || in ShouldStop()
257 thread_sp->IsStillAtLastBreakpointHit() in ShouldStop()
258 || thread_sp->ShouldRunBeforePublicStop()) in ShouldStop()
259 threads_copy.push_back(thread_sp); in ShouldStop()
302 ThreadSP thread_sp(*pos); in ShouldStop() local
303 thread_sp->GetStopInfo(); in ShouldStop()
311 ThreadSP thread_sp(*pos); in ShouldStop() local
333 if (thread_sp->GetProcess()->GetStopID() > 1) in ShouldStop()
336 did_anybody_stop_for_a_reason |= thread_sp->ThreadStoppedForAReason(); in ShouldStop()
338 const bool thread_should_stop = thread_sp->ShouldStop(event_ptr); in ShouldStop()
343 bool this_thread_forces_run = thread_sp->ShouldRunBeforePublicStop(); in ShouldStop()
349 __FUNCTION__, thread_sp->GetID()); in ShouldStop()
368 ThreadSP thread_sp(*pos); in ShouldStop() local
369 thread_sp->WillStop(); in ShouldStop()
393 ThreadSP thread_sp(*pos); in ShouldReportStop() local
394 if (thread_sp->ShouldRunBeforePublicStop()) { in ShouldReportStop()
396 "the should report stop.", thread_sp->GetID()); in ShouldReportStop()
401 const Vote vote = thread_sp->ShouldReportStop(event_ptr); in ShouldReportStop()
416 thread_sp->GetID(), vote, result); in ShouldReportStop()
431 ThreadSP thread_sp(*pos); in SetShouldReportStop() local
432 thread_sp->SetShouldReportStop(vote); in SetShouldReportStop()
589 ThreadSP thread_sp(*pos); in WillResume() local
590 if (thread_sp->GetResumeState() != eStateSuspended && in WillResume()
591 thread_sp->GetCurrentPlan()->StopOthers()) { in WillResume()
597 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended); in WillResume()
598 run_me_only_list.AddThread(thread_sp); in WillResume()
600 if (thread_sp == GetSelectedThread()) in WillResume()
601 stop_others_thread_sp = thread_sp; in WillResume()
603 if (thread_sp->ShouldRunBeforePublicStop()) { in WillResume()
605 stop_others_thread_sp = thread_sp; in WillResume()
616 ThreadSP thread_sp(*pos); in WillResume() local
618 if (thread_sp->GetResumeState() != eStateSuspended) in WillResume()
619 run_state = thread_sp->GetCurrentPlan()->RunState(); in WillResume()
622 if (!thread_sp->ShouldResume(run_state)) in WillResume()
640 ThreadSP thread_sp(*pos); in WillResume() local
641 if (thread_sp == thread_to_run) { in WillResume()
645 if (!thread_sp->ShouldResume(thread_sp->GetCurrentPlan()->RunState())) in WillResume()
648 thread_sp->ShouldResume(eStateSuspended); in WillResume()
661 ThreadSP thread_sp(*pos); in DidResume() local
662 if (thread_sp->GetTemporaryResumeState() != eStateSuspended) in DidResume()
663 thread_sp->DidResume(); in DidResume()
678 ThreadSP thread_sp(*pos); in DidStop() local
679 if (StateIsRunningState(thread_sp->GetState())) in DidStop()
680 thread_sp->DidStop(); in DidStop()
686 ThreadSP thread_sp = FindThreadByID(m_selected_tid); in GetSelectedThread() local
687 if (!thread_sp.get()) { in GetSelectedThread()
689 return thread_sp; in GetSelectedThread()
691 thread_sp = m_threads[0]; in GetSelectedThread()
693 return thread_sp; in GetSelectedThread()
791 lldb::ThreadSP thread_sp) in ExpressionExecutionThreadPusher() argument
793 if (thread_sp) { in ExpressionExecutionThreadPusher()
794 m_tid = thread_sp->GetID(); in ExpressionExecutionThreadPusher()
795 m_thread_list = &thread_sp->GetProcess()->GetThreadList(); in ExpressionExecutionThreadPusher()