MCPcopy Create free account
hub / github.com/Niko1221/Strata / unhold

Method unhold

engine/src/core/expert_source.cpp:7295–7300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7293}
7294
7295void ForesightSwap::unhold(int64_t layer, int32_t expert) {
7296 if (layer < 0 || layer >= n_layers || expert < 0 || expert >= n_expert) return;
7297 std::lock_guard<std::mutex> smu_lk(smu_);
7298 int16_t& w = where[(size_t) (layer * n_expert + expert)];
7299 if (w == kHeld) w = -1;
7300}
7301
7302void ForesightSwap::note_miss(ExpertSource* src, int64_t layer, int32_t expert) {
7303 std::lock_guard<std::mutex> smu_lk(smu_);

Callers 3

fs_hold_stagedMethod · 0.80
install_residentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected