Lines Matching full:tid
203 pthread_t tid; in InitializeInspector() local
208 if (pthread_create(&tid, nullptr, &HandleHybridClient, args)) { in InitializeInspector()
213 if (pthread_create(&tid, nullptr, &HandleNormalClient, server)) { in InitializeInspector()
219 newInspector->websocketServer_->tid_ = tid; in InitializeInspector()
345 debuggerPostTask_([tid = tid_, vm = vm_] { in OnMessage()
346 if (tid != pthread_self()) { in OnMessage()
354 debuggerPostTask_([tid = tidForSocketPair_, vm = vm_] { in OnMessage()
356 if (tid != static_cast<pid_t>(threadOrTaskId)) { in OnMessage()
385 const DebuggerPostTask &GetDebuggerPostTask(int tid) in GetDebuggerPostTask() argument
388 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetDebuggerPostTask()
392 return g_debuggerInfo[tid].second; in GetDebuggerPostTask()
395 void *GetEcmaVM(int tid) in GetEcmaVM() argument
398 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetEcmaVM()
401 return g_debuggerInfo[tid].first; in GetEcmaVM()
426 bool StartDebugForSocketpair(int tid, int socketfd, bool isHybrid) in StartDebugForSocketpair() argument
428 LOGI("StartDebugForSocketpair, tid = %{private}d, socketfd = %{private}d", tid, socketfd); in StartDebugForSocketpair()
429 void* vm = GetEcmaVM(tid); in StartDebugForSocketpair()
438 const DebuggerPostTask &debuggerPostTask = GetDebuggerPostTask(tid); in StartDebugForSocketpair()
440 if (!InitializeInspector(vm, debuggerPostTask, debugInfo, tid, isHybrid)) { in StartDebugForSocketpair()
507 uint32_t tid = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(g_inspectors[vm]->tid_)); in StopDebug() local
509 uint32_t tid = g_inspectors[vm]->tid_; in StopDebug() local
511 auto debuggerInfo = g_debuggerInfo.find(tid); in StopDebug()
529 void StopOldDebug(int tid, const std::string& componentName) in StopOldDebug() argument
531 …LOGI("StopDebug start, componentName = %{private}s, tid = %{private}d", componentName.c_str(), tid… in StopOldDebug()
532 void* vm = GetEcmaVM(tid); in StopOldDebug()
547 void StoreDebuggerInfo(int tid, void* vm, const DebuggerPostTask& debuggerPostTask) in StoreDebuggerInfo() argument
550 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in StoreDebuggerInfo()
551 g_debuggerInfo.emplace(tid, std::make_pair(vm, debuggerPostTask)); in StoreDebuggerInfo()