Lines Matching defs:thread_sp
96 ThreadSP thread_sp;
98 thread_sp = m_threads[idx];
99 return thread_sp;
108 ThreadSP thread_sp;
113 thread_sp = m_threads[idx];
117 return thread_sp;
126 ThreadSP thread_sp;
131 thread_sp = m_threads[idx];
135 return thread_sp;
144 ThreadSP thread_sp;
149 thread_sp = m_threads[idx];
154 return thread_sp;
164 ThreadSP thread_sp;
169 thread_sp = m_threads[idx];
174 return thread_sp;
178 ThreadSP thread_sp;
186 thread_sp = m_threads[idx];
191 return thread_sp;
197 ThreadSP thread_sp;
201 thread_sp = m_threads[idx];
205 return thread_sp;
214 ThreadSP thread_sp;
218 thread_sp = m_threads[idx];
222 return thread_sp;
244 for (lldb::ThreadSP thread_sp : m_threads) {
255 if (thread_sp->GetTemporaryResumeState() != eStateSuspended ||
256 thread_sp->IsStillAtLastBreakpointHit()
257 || thread_sp->ShouldRunBeforePublicStop())
258 threads_copy.push_back(thread_sp);
301 ThreadSP thread_sp(*pos);
302 thread_sp->GetStopInfo();
310 ThreadSP thread_sp(*pos);
332 if (thread_sp->GetProcess()->GetStopID() > 1)
335 did_anybody_stop_for_a_reason |= thread_sp->ThreadStoppedForAReason();
337 const bool thread_should_stop = thread_sp->ShouldStop(event_ptr);
342 bool this_thread_forces_run = thread_sp->ShouldRunBeforePublicStop();
348 __FUNCTION__, thread_sp->GetID());
367 ThreadSP thread_sp(*pos);
368 thread_sp->WillStop();
392 ThreadSP thread_sp(*pos);
393 if (thread_sp->ShouldRunBeforePublicStop()) {
395 "the should report stop.", thread_sp->GetID());
400 const Vote vote = thread_sp->ShouldReportStop(event_ptr);
415 thread_sp->GetID(), vote, result);
430 ThreadSP thread_sp(*pos);
431 thread_sp->SetShouldReportStop(vote);
536 ThreadSP thread_sp(*pos);
537 if (thread_sp->GetResumeState() != eStateSuspended &&
538 thread_sp->GetCurrentPlan()->StopOthers()) {
539 if (thread_sp->IsOperatingSystemPluginThread() &&
540 !thread_sp->GetBackingThread())
544 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended);
545 run_me_only_list.AddThread(thread_sp);
547 if (thread_sp == GetSelectedThread())
548 thread_to_run = thread_sp;
550 if (thread_sp->ShouldRunBeforePublicStop()) {
552 thread_to_run = thread_sp;
583 ThreadSP thread_sp(*pos);
584 if (thread_sp->GetResumeState() != eStateSuspended) {
585 if (thread_sp->IsOperatingSystemPluginThread() &&
586 !thread_sp->GetBackingThread())
588 if (thread_sp->SetupForResume()) {
590 assert(thread_sp->GetCurrentPlan()->RunState() != eStateSuspended);
591 thread_to_run = thread_sp;
592 if (thread_sp->ShouldRunBeforePublicStop()) {
620 ThreadSP thread_sp(*pos);
622 if (thread_sp->GetResumeState() != eStateSuspended)
623 run_state = thread_sp->GetCurrentPlan()->RunState();
626 if (!thread_sp->ShouldResume(run_state))
631 ThreadSP thread_sp(*pos);
632 if (thread_sp == thread_to_run) {
636 if (!thread_sp->ShouldResume(thread_sp->GetCurrentPlan()->RunState()))
639 thread_sp->ShouldResume(eStateSuspended);
652 ThreadSP thread_sp(*pos);
653 if (thread_sp->GetTemporaryResumeState() != eStateSuspended)
654 thread_sp->DidResume();
669 ThreadSP thread_sp(*pos);
670 if (StateIsRunningState(thread_sp->GetState()))
671 thread_sp->DidStop();
677 ThreadSP thread_sp = FindThreadByID(m_selected_tid);
678 if (!thread_sp.get()) {
680 return thread_sp;
682 thread_sp = m_threads[0];
684 return thread_sp;
784 lldb::ThreadSP thread_sp)
786 if (thread_sp) {
787 m_tid = thread_sp->GetID();
788 m_thread_list = &thread_sp->GetProcess()->GetThreadList();