Lines Matching refs:thread_sp
96 ThreadSP thread_sp; in GetThreadAtIndex() local
98 thread_sp = m_threads[idx]; in GetThreadAtIndex()
99 return thread_sp; in GetThreadAtIndex()
108 ThreadSP thread_sp; in FindThreadByID() local
113 thread_sp = m_threads[idx]; in FindThreadByID()
117 return thread_sp; in FindThreadByID()
126 ThreadSP thread_sp; in FindThreadByProtocolID() local
131 thread_sp = m_threads[idx]; in FindThreadByProtocolID()
135 return thread_sp; in FindThreadByProtocolID()
144 ThreadSP thread_sp; in RemoveThreadByID() local
149 thread_sp = m_threads[idx]; in RemoveThreadByID()
154 return thread_sp; in RemoveThreadByID()
164 ThreadSP thread_sp; in RemoveThreadByProtocolID() local
169 thread_sp = m_threads[idx]; in RemoveThreadByProtocolID()
174 return thread_sp; in RemoveThreadByProtocolID()
178 ThreadSP thread_sp; in GetThreadSPForThreadPtr() local
186 thread_sp = m_threads[idx]; in GetThreadSPForThreadPtr()
191 return thread_sp; in GetThreadSPForThreadPtr()
197 ThreadSP thread_sp; in GetBackingThread() local
201 thread_sp = m_threads[idx]; in GetBackingThread()
205 return thread_sp; in GetBackingThread()
214 ThreadSP thread_sp; in FindThreadByIndexID() local
218 thread_sp = m_threads[idx]; in FindThreadByIndexID()
222 return thread_sp; in FindThreadByIndexID()
244 for (lldb::ThreadSP thread_sp : m_threads) { in ShouldStop() local
255 if (thread_sp->GetTemporaryResumeState() != eStateSuspended || in ShouldStop()
256 thread_sp->IsStillAtLastBreakpointHit() in ShouldStop()
257 || thread_sp->ShouldRunBeforePublicStop()) in ShouldStop()
258 threads_copy.push_back(thread_sp); in ShouldStop()
301 ThreadSP thread_sp(*pos); in ShouldStop() local
302 thread_sp->GetStopInfo(); in ShouldStop()
310 ThreadSP thread_sp(*pos); in ShouldStop() local
332 if (thread_sp->GetProcess()->GetStopID() > 1) in ShouldStop()
335 did_anybody_stop_for_a_reason |= thread_sp->ThreadStoppedForAReason(); in ShouldStop()
337 const bool thread_should_stop = thread_sp->ShouldStop(event_ptr); in ShouldStop()
342 bool this_thread_forces_run = thread_sp->ShouldRunBeforePublicStop(); in ShouldStop()
348 __FUNCTION__, thread_sp->GetID()); in ShouldStop()
367 ThreadSP thread_sp(*pos); in ShouldStop() local
368 thread_sp->WillStop(); in ShouldStop()
392 ThreadSP thread_sp(*pos); in ShouldReportStop() local
393 if (thread_sp->ShouldRunBeforePublicStop()) { in ShouldReportStop()
395 "the should report stop.", thread_sp->GetID()); in ShouldReportStop()
400 const Vote vote = thread_sp->ShouldReportStop(event_ptr); in ShouldReportStop()
415 thread_sp->GetID(), vote, result); in ShouldReportStop()
430 ThreadSP thread_sp(*pos); in SetShouldReportStop() local
431 thread_sp->SetShouldReportStop(vote); in SetShouldReportStop()
588 ThreadSP thread_sp(*pos); in WillResume() local
589 if (thread_sp->GetResumeState() != eStateSuspended && in WillResume()
590 thread_sp->GetCurrentPlan()->StopOthers()) { in WillResume()
596 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended); in WillResume()
597 run_me_only_list.AddThread(thread_sp); in WillResume()
599 if (thread_sp == GetSelectedThread()) in WillResume()
600 stop_others_thread_sp = thread_sp; in WillResume()
602 if (thread_sp->ShouldRunBeforePublicStop()) { in WillResume()
604 stop_others_thread_sp = thread_sp; in WillResume()
615 ThreadSP thread_sp(*pos); in WillResume() local
617 if (thread_sp->GetResumeState() != eStateSuspended) in WillResume()
618 run_state = thread_sp->GetCurrentPlan()->RunState(); in WillResume()
621 if (!thread_sp->ShouldResume(run_state)) in WillResume()
639 ThreadSP thread_sp(*pos); in WillResume() local
640 if (thread_sp == thread_to_run) { in WillResume()
644 if (!thread_sp->ShouldResume(thread_sp->GetCurrentPlan()->RunState())) in WillResume()
647 thread_sp->ShouldResume(eStateSuspended); in WillResume()
660 ThreadSP thread_sp(*pos); in DidResume() local
661 if (thread_sp->GetTemporaryResumeState() != eStateSuspended) in DidResume()
662 thread_sp->DidResume(); in DidResume()
677 ThreadSP thread_sp(*pos); in DidStop() local
678 if (StateIsRunningState(thread_sp->GetState())) in DidStop()
679 thread_sp->DidStop(); in DidStop()
685 ThreadSP thread_sp = FindThreadByID(m_selected_tid); in GetSelectedThread() local
686 if (!thread_sp.get()) { in GetSelectedThread()
688 return thread_sp; in GetSelectedThread()
690 thread_sp = m_threads[0]; in GetSelectedThread()
692 return thread_sp; in GetSelectedThread()
792 lldb::ThreadSP thread_sp) in ExpressionExecutionThreadPusher() argument
794 if (thread_sp) { in ExpressionExecutionThreadPusher()
795 m_tid = thread_sp->GetID(); in ExpressionExecutionThreadPusher()
796 m_thread_list = &thread_sp->GetProcess()->GetThreadList(); in ExpressionExecutionThreadPusher()