Browse Source

node.cpp

allocs
Antonio SJ Musumeci 2 weeks ago
parent
commit
9ac073a1b4
  1. 12
      libfuse/lib/node.cpp

12
libfuse/lib/node.cpp

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