Lines Matching refs:tid
169 pthread_t tid;
170 if (pthread_create(&tid, nullptr, &HandleClient, static_cast<void *>(
175 newInspector->websocketServer_->tid_ = tid;
276 debuggerPostTask_([tid = tid_, vm = vm_] {
277 if (tid != pthread_self()) {
285 debuggerPostTask_([tid = tidForSocketPair_, vm = vm_, this] {
287 if (tid != static_cast<pid_t>(threadOrTaskId)) {
316 const DebuggerPostTask &GetDebuggerPostTask(int tid)
319 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) {
323 return g_debuggerInfo[tid].second;
326 void *GetEcmaVM(int tid)
329 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) {
332 return g_debuggerInfo[tid].first;
351 bool StartDebugForSocketpair(int tid, int socketfd)
353 LOGI("StartDebugForSocketpair, tid = %{private}d, socketfd = %{private}d", tid, socketfd);
354 void* vm = GetEcmaVM(tid);
363 const DebuggerPostTask &debuggerPostTask = GetDebuggerPostTask(tid);
365 if (!InitializeInspector(vm, debuggerPostTask, debugInfo, tid)) {
421 uint32_t tid = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(g_inspectors[vm]->tid_));
423 uint32_t tid = g_inspectors[vm]->tid_;
425 auto debuggerInfo = g_debuggerInfo.find(tid);
434 void StopOldDebug(int tid, const std::string& componentName)
436 LOGI("StopDebug start, componentName = %{private}s, tid = %{private}d", componentName.c_str(), tid);
437 void* vm = GetEcmaVM(tid);
452 void StoreDebuggerInfo(int tid, void* vm, const DebuggerPostTask& debuggerPostTask)
455 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) {
456 g_debuggerInfo.emplace(tid, std::make_pair(vm, debuggerPostTask));