remove a session by id
| 1829 | |
| 1830 | // remove a session by id |
| 1831 | void Sessions::remove(const opaque* id) |
| 1832 | { |
| 1833 | Lock guard(mutex_); |
| 1834 | sess_iterator find = STL::find_if(list_.begin(), list_.end(), |
| 1835 | sess_match(id)); |
| 1836 | if (find != list_.end()) { |
| 1837 | del_ptr_zero()(*find); |
| 1838 | list_.erase(find); |
| 1839 | } |
| 1840 | } |
| 1841 | |
| 1842 | |
| 1843 | // flush expired sessions from cache |
nothing calls this directly
no test coverage detected