Lines Matching refs:thread_sp

32   MachThreadSP thread_sp(GetThreadByID(tid));  in GetState()  local
33 if (thread_sp) in GetState()
34 return thread_sp->GetState(); in GetState()
39 MachThreadSP thread_sp(GetThreadByID(tid)); in GetName() local
40 if (thread_sp) in GetName()
41 return thread_sp->GetName(); in GetName()
48 MachThreadSP thread_sp(GetThreadByID(tid)); in GetRequestedQoS() local
49 if (thread_sp) in GetRequestedQoS()
50 return thread_sp->GetRequestedQoS(tsd, dti_qos_class_index); in GetRequestedQoS()
55 MachThreadSP thread_sp(GetThreadByID(tid)); in GetPThreadT() local
56 if (thread_sp) in GetPThreadT()
57 return thread_sp->GetPThreadT(); in GetPThreadT()
62 MachThreadSP thread_sp(GetThreadByID(tid)); in GetDispatchQueueT() local
63 if (thread_sp) in GetDispatchQueueT()
64 return thread_sp->GetDispatchQueueT(); in GetDispatchQueueT()
71 MachThreadSP thread_sp(GetThreadByID(tid)); in GetTSDAddressForThread() local
72 if (thread_sp) in GetTSDAddressForThread()
73 return thread_sp->GetTSDAddressForThread( in GetTSDAddressForThread()
80 MachThreadSP thread_sp(GetThreadByID(tid)); in SetCurrentThread() local
81 if (thread_sp) { in SetCurrentThread()
82 m_current_thread = thread_sp; in SetCurrentThread()
90 MachThreadSP thread_sp(GetThreadByID(tid)); in GetThreadStoppedReason() local
91 if (thread_sp) in GetThreadStoppedReason()
92 return thread_sp->GetStopException().GetStopInfo(stop_info); in GetThreadStoppedReason()
106 MachThreadSP thread_sp(GetThreadByID(tid)); in DumpThreadStoppedReason() local
107 if (thread_sp) in DumpThreadStoppedReason()
108 thread_sp->GetStopException().DumpStopReason(); in DumpThreadStoppedReason()
112 MachThreadSP thread_sp(GetThreadByID(tid)); in GetThreadInfo() local
113 if (thread_sp) in GetThreadInfo()
114 return thread_sp->GetBasicInfoAsString(); in GetThreadInfo()
120 MachThreadSP thread_sp; in GetThreadByID() local
124 thread_sp = m_threads[idx]; in GetThreadByID()
128 return thread_sp; in GetThreadByID()
134 MachThreadSP thread_sp; in GetThreadByMachPortNumber() local
138 thread_sp = m_threads[idx]; in GetThreadByMachPortNumber()
142 return thread_sp; in GetThreadByMachPortNumber()
148 MachThreadSP thread_sp; in GetThreadIDByMachPortNumber() local
161 MachThreadSP thread_sp; in GetMachPortNumberByThreadID() local
174 MachThreadSP thread_sp(GetThreadByID(tid)); in GetRegisterValue() local
175 if (thread_sp) in GetRegisterValue()
176 return thread_sp->GetRegisterValue(set, reg, reg_value); in GetRegisterValue()
184 MachThreadSP thread_sp(GetThreadByID(tid)); in SetRegisterValue() local
185 if (thread_sp) in SetRegisterValue()
186 return thread_sp->SetRegisterValue(set, reg, reg_value); in SetRegisterValue()
193 MachThreadSP thread_sp(GetThreadByID(tid)); in GetRegisterContext() local
194 if (thread_sp) in GetRegisterContext()
195 return thread_sp->GetRegisterContext(buf, buf_len); in GetRegisterContext()
201 MachThreadSP thread_sp(GetThreadByID(tid)); in SetRegisterContext() local
202 if (thread_sp) in SetRegisterContext()
203 return thread_sp->SetRegisterContext(buf, buf_len); in SetRegisterContext()
208 MachThreadSP thread_sp(GetThreadByID(tid)); in SaveRegisterState() local
209 if (thread_sp) in SaveRegisterState()
210 return thread_sp->SaveRegisterState(); in SaveRegisterState()
215 MachThreadSP thread_sp(GetThreadByID(tid)); in RestoreRegisterState() local
216 if (thread_sp) in RestoreRegisterState()
217 return thread_sp->RestoreRegisterState(save_id); in RestoreRegisterState()
234 MachThreadSP thread_sp; in CurrentThreadID() local
235 CurrentThread(thread_sp); in CurrentThreadID()
236 if (thread_sp.get()) in CurrentThreadID()
237 return thread_sp->ThreadID(); in CurrentThreadID()
242 MachThreadSP thread_sp(GetThreadByMachPortNumber(exc.thread_port)); in NotifyException() local
243 if (thread_sp) { in NotifyException()
244 thread_sp->NotifyException(exc); in NotifyException()
314 MachThreadSP thread_sp(GetThreadByID(unique_thread_id)); in UpdateThreadList() local
315 if (thread_sp) { in UpdateThreadList()
317 currThreads.push_back(thread_sp); in UpdateThreadList()
320 thread_sp = std::make_shared<MachThread>( in UpdateThreadList()
326 if (thread_sp->IsUserReady()) { in UpdateThreadList()
328 new_threads->push_back(thread_sp); in UpdateThreadList()
330 currThreads.push_back(thread_sp); in UpdateThreadList()
348 void MachThreadList::CurrentThread(MachThreadSP &thread_sp) { in CurrentThread() argument
363 thread_sp = m_current_thread; in CurrentThread()