mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
node.cpp
This commit is contained in:
parent
3394ff525a
commit
9ac073a1b4
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue