mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
Update the secondary group cache (#1492)
* Use concurrent_flat_map to build a global cache rather than per thread. * Create global maintanence thread manager for clearing unused cache entries.
This commit is contained in:
parent
9e626228be
commit
f852474073
17 changed files with 342 additions and 246 deletions
13
libfuse/include/maintenance_thread.hpp
Normal file
13
libfuse/include/maintenance_thread.hpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
|
||||
class MaintenanceThread
|
||||
{
|
||||
public:
|
||||
static void setup();
|
||||
static void stop();
|
||||
static void push_job(const std::function<void(int)> &func);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue