This commit is contained in:
Antonio SJ Musumeci 2025-10-27 22:12:51 -05:00
parent 3394ff525a
commit 9ac073a1b4

View file

@ -78,3 +78,15 @@ node_free(node_t *node_)
stack->next = g_stack;
g_stack = stack;
}
void
node_gc()
{
std::lock_guard<std::mutex> _(g_mutex);
for(auto &info : g_all_stacks)
{
*info.should_gc = true;
}
}