MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / raw_unlock

Method raw_unlock

llama.cpp:1121–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119 #undef MLOCK_SUGGESTION
1120
1121 static void raw_unlock(void * addr, size_t size) {
1122 if (munlock(addr, size)) {
1123 fprintf(stderr, "warning: failed to munlock buffer: %s\n", std::strerror(errno));
1124 }
1125 }
1126#elif defined(_WIN32)
1127 static constexpr bool SUPPORTED = true;
1128

Callers

nothing calls this directly

Calls 3

fprintfFunction · 0.85
llama_format_win_errFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected