Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Simple-XX/SimpleKernel
/ Unlock
Method
Unlock
src/memory/memory.cpp:46–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
}
45
46
void Unlock() override {
47
lock_.UnLock().or_else([](auto&&) -> Expected<void> {
48
while (true) {
49
cpu_io::Pause();
50
}
51
return {};
52
});
53
}
54
55
private:
56
SpinLock lock_{
"bmalloc"
};
Callers
nothing calls this directly
Calls
2
Pause
Function · 0.85
UnLock
Method · 0.45
Tested by
no test coverage detected