Lines Matching full:tid
172 pthread_t tid; in InitializeInspector() local
173 if (pthread_create(&tid, nullptr, &HandleClient, static_cast<void *>( in InitializeInspector()
178 newInspector->websocketServer_->tid_ = tid; in InitializeInspector()
279 debuggerPostTask_([tid = tid_, vm = vm_] { in OnMessage()
280 if (tid != pthread_self()) { in OnMessage()
288 debuggerPostTask_([tid = tidForSocketPair_, vm = vm_, this] { in OnMessage()
290 if (tid != static_cast<pid_t>(threadOrTaskId)) { in OnMessage()
319 const DebuggerPostTask &GetDebuggerPostTask(int tid) in GetDebuggerPostTask() argument
322 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetDebuggerPostTask()
326 return g_debuggerInfo[tid].second; in GetDebuggerPostTask()
329 void *GetEcmaVM(int tid) in GetEcmaVM() argument
332 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetEcmaVM()
335 return g_debuggerInfo[tid].first; in GetEcmaVM()
354 bool StartDebugForSocketpair(int tid, int socketfd) in StartDebugForSocketpair() argument
356 LOGI("StartDebugForSocketpair, tid = %{private}d, socketfd = %{private}d", tid, socketfd); in StartDebugForSocketpair()
357 void* vm = GetEcmaVM(tid); in StartDebugForSocketpair()
366 const DebuggerPostTask &debuggerPostTask = GetDebuggerPostTask(tid); in StartDebugForSocketpair()
368 if (!InitializeInspector(vm, debuggerPostTask, debugInfo, tid)) { in StartDebugForSocketpair()
424 uint32_t tid = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(g_inspectors[vm]->tid_)); in StopDebug() local
426 uint32_t tid = g_inspectors[vm]->tid_; in StopDebug() local
428 auto debuggerInfo = g_debuggerInfo.find(tid); in StopDebug()
437 void StopOldDebug(int tid, const std::string& componentName) in StopOldDebug() argument
439 …LOGI("StopDebug start, componentName = %{private}s, tid = %{private}d", componentName.c_str(), tid… in StopOldDebug()
440 void* vm = GetEcmaVM(tid); in StopOldDebug()
455 void StoreDebuggerInfo(int tid, void* vm, const DebuggerPostTask& debuggerPostTask) in StoreDebuggerInfo() argument
458 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in StoreDebuggerInfo()
459 g_debuggerInfo.emplace(tid, std::make_pair(vm, debuggerPostTask)); in StoreDebuggerInfo()