Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BernardoGiordano/Checkpoint
/ adopt
Method
adopt
common/script/scriptheap.cpp:99–106 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
97
}
98
99
void ScriptHeap::adopt(void* ptr, Deleter deleter)
100
{
101
if (!ptr || !deleter) {
102
return;
103
}
104
std::lock_guard<std::mutex> lock(mMutex);
105
mBlocks[ptr] = deleter;
106
}
107
108
bool ScriptHeap::release(void* ptr)
109
{
Callers
1
ckpt_json_new
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected