| 340 | } |
| 341 | |
| 342 | void Session::reload(const Engine::SeqState& s) { |
| 343 | e_.use_lane(lane_); |
| 344 | if (e_.pos() != 0) throw std::runtime_error("session: reload onto a lane that holds a conversation"); |
| 345 | e_.load_state(s); |
| 346 | live_ = Conv{}; |
| 347 | live_.len = s.tokens.size(); |
| 348 | live_.used = ++cache_->clock; |
| 349 | } |
| 350 | |
| 351 | // least recently used parked conversations out until the held states and `need` more fit the budget |
| 352 | void Session::evict(size_t need) { |
no test coverage detected