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
253 if (thread_sp->GetTemporaryResumeState() != eStateSuspended || in ShouldStop()
254 thread_sp->IsStillAtLastBreakpointHit()) in ShouldStop()
255 threads_copy.push_back(thread_sp); in ShouldStop()
298 ThreadSP thread_sp(*pos); in ShouldStop() local
299 thread_sp->GetStopInfo(); in ShouldStop()
303 ThreadSP thread_sp(*pos); in ShouldStop() local
325 if (thread_sp->GetProcess()->GetStopID() > 1) in ShouldStop()
328 did_anybody_stop_for_a_reason |= thread_sp->ThreadStoppedForAReason(); in ShouldStop()
330 const bool thread_should_stop = thread_sp->ShouldStop(event_ptr); in ShouldStop()
348 ThreadSP thread_sp(*pos); in ShouldStop() local
349 thread_sp->WillStop(); in ShouldStop()
372 ThreadSP thread_sp(*pos); in ShouldReportStop() local
373 const Vote vote = thread_sp->ShouldReportStop(event_ptr); in ShouldReportStop()
388 thread_sp->GetID(), vote, result); in ShouldReportStop()
403 ThreadSP thread_sp(*pos); in SetShouldReportStop() local
404 thread_sp->SetShouldReportStop(vote); in SetShouldReportStop()
555 ThreadSP thread_sp(*pos); in WillResume() local
556 if (thread_sp->GetResumeState() != eStateSuspended && in WillResume()
557 thread_sp->GetCurrentPlan()->StopOthers()) { in WillResume()
563 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended); in WillResume()
565 if (thread_sp == GetSelectedThread()) { in WillResume()
570 run_me_only_list.AddThread(thread_sp); in WillResume()
574 run_me_only_list.AddThread(thread_sp); in WillResume()
583 ThreadSP thread_sp(*pos); in WillResume() local
585 if (thread_sp->GetResumeState() != eStateSuspended) in WillResume()
586 run_state = thread_sp->GetCurrentPlan()->RunState(); in WillResume()
589 if (!thread_sp->ShouldResume(run_state)) in WillResume()
607 ThreadSP thread_sp(*pos); in WillResume() local
608 if (thread_sp == thread_to_run) { in WillResume()
609 if (!thread_sp->ShouldResume(thread_sp->GetCurrentPlan()->RunState())) in WillResume()
612 thread_sp->ShouldResume(eStateSuspended); in WillResume()
625 ThreadSP thread_sp(*pos); in DidResume() local
626 if (thread_sp->GetResumeState() != eStateSuspended) in DidResume()
627 thread_sp->DidResume(); in DidResume()
642 ThreadSP thread_sp(*pos); in DidStop() local
643 if (StateIsRunningState(thread_sp->GetState())) in DidStop()
644 thread_sp->DidStop(); in DidStop()
650 ThreadSP thread_sp = FindThreadByID(m_selected_tid); in GetSelectedThread() local
651 if (!thread_sp.get()) { in GetSelectedThread()
653 return thread_sp; in GetSelectedThread()
655 thread_sp = m_threads[0]; in GetSelectedThread()
657 return thread_sp; in GetSelectedThread()
753 lldb::ThreadSP thread_sp) in ExpressionExecutionThreadPusher() argument
755 if (thread_sp) { in ExpressionExecutionThreadPusher()
756 m_tid = thread_sp->GetID(); in ExpressionExecutionThreadPusher()
757 m_thread_list = &thread_sp->GetProcess()->GetThreadList(); in ExpressionExecutionThreadPusher()