| 89 | } |
| 90 | |
| 91 | ISession* 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 | |
| 103 | void SessionMgr::RemoveSession(int session_id) |
| 104 | { |
nothing calls this directly
no test coverage detected