Home
last modified time | relevance | path

Searched refs:sessions_ (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
H A Dsession_manager.cpp24 return sessions_.insert({!sessions_.empty() ? std::to_string(thread.GetId()) : "", thread}).first->first; in AddSession()
30 sessions_.erase(id); in RemoveSession()
39 auto it = sessions_.find(""); in GetSessionIdByThread()
40 if (it != sessions_.end() && it->second == thread) { in GetSessionIdByThread()
51 auto it = sessions_.find(id); in GetThreadBySessionId()
52 if (it == sessions_.end()) { in GetThreadBySessionId()
62 for (auto &[id, thread] : sessions_) { in EnumerateSessions()
H A Dsession_manager.h40 std::map<std::string, PtThread> sessions_ GUARDED_BY(mutex_);
/arkcompiler/toolchain/tooling/client/session/
H A Dsession.cpp110 sessions_[sessionId] = std::make_unique<Session>(sessionId, sockInfo); in CreateSessionById()
111 if (sessions_[sessionId]->Start()) { in CreateSessionById()
112 sessions_[sessionId] = nullptr; in CreateSessionById()
123 if (sessions_[i] == nullptr) { in CreateNewSession()
129 if (sessions_[i]->GetSockInfo() == sockInfo) { in CreateNewSession()
153 sessions_[sessionId] = nullptr; in DelSessionById()
166 if (sessions_[i] != nullptr) { in SessionList()
168 std::string sockState = sessions_[i]->GetSocketStateString(); in SessionList()
170 std::cout << std::setw(32) << std::left << sessions_[i]->GetSockInfo(); // 32: max length of socket info in SessionList()
190 if (sessions_[sessionI in CmdForAllSessions()
[all...]
H A Dsession.h148 if (currentSessionId_ >= MAX_SESSION_NUM || sessions_[currentSessionId_] == nullptr) { in GetCurrentSession()
151 return sessions_[currentSessionId_].get(); in GetCurrentSession()
156 if (sessionId >= MAX_SESSION_NUM || sessions_[sessionId] == nullptr) { in GetSessionById()
159 return sessions_[sessionId].get(); in GetSessionById()
176 std::unique_ptr<Session> sessions_[MAX_SESSION_NUM]; member in OHOS::ArkCompiler::Toolchain::SessionManager

Completed in 2 milliseconds