MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / liballoc_lock

Function liballoc_lock

Kernel/src/liballoc/_liballoc.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14extern "C" {
15int liballoc_lock() {
16 while(acquireTestLock(&liballocLock)) { asm("sti"); } // If for some reason liballoc is locked before the scheduler starts something probably went horribly wrong
17 return 0;
18}
19
20int liballoc_unlock() {
21 releaseLock(&liballocLock);

Callers 3

PREFIX(malloc)Function · 0.85
PREFIX(free)Function · 0.85
PREFIX(realloc)Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected