MCPcopy Create free account
hub / github.com/F-Stack/f-stack / FindSession

Method FindSession

adapter/micro_thread/mt_session.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91ISession* SessionMgr::FindSession(int session_id)
92{
93 if (!_hash_map) {
94 MTLOG_ERROR("Mngr not init(%p)", _hash_map);
95 return NULL;
96 }
97
98 ISession key;
99 key.SetSessionId(session_id);
100 return dynamic_cast<ISession*>(_hash_map->HashFind(&key));
101}
102
103void SessionMgr::RemoveSession(int session_id)
104{

Callers

nothing calls this directly

Calls 2

HashFindMethod · 0.80
SetSessionIdMethod · 0.45

Tested by

no test coverage detected