| 182 | */ |
| 183 | template <class Tinst, class Tcont> |
| 184 | void CargoList<Tinst, Tcont>::RemoveFromCache(const CargoPacket *cp, uint count) |
| 185 | { |
| 186 | assert(count <= cp->count); |
| 187 | this->count -= count; |
| 188 | this->cargo_periods_in_transit -= static_cast<uint64_t>(cp->periods_in_transit) * count; |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Update the cache to reflect adding of this packet. |
no test coverage detected