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
18ac5a9b55
commit
36aad5ab59
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ static std::vector<StackInfo> g_all_stacks;
|
|||
node_t*
|
||||
node_alloc()
|
||||
{
|
||||
if(g_initialized == false)
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(g_mutex);
|
||||
}
|
||||
|
||||
if(g_stack == NULL)
|
||||
return (node_t*)calloc(1,sizeof(node_t));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue