Decrement the session's reference counter and mark last_accessed_ms so that state expiration can proceed.
| 1521 | /// Decrement the session's reference counter and mark last_accessed_ms so that state |
| 1522 | /// expiration can proceed. |
| 1523 | inline void MarkSessionInactive(const std::shared_ptr<SessionState>& session) { |
| 1524 | std::lock_guard<std::mutex> l(session->lock); |
| 1525 | DCHECK_GT(session->ref_count, 0); |
| 1526 | --session->ref_count; |
| 1527 | session->last_accessed_ms = UnixMillis(); |
| 1528 | } |
| 1529 | |
| 1530 | /// Increment the session's reference counter. |
| 1531 | inline void MarkSessionActive(const std::shared_ptr<SessionState>& session) { |
no test coverage detected