mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 07:26:28 -05:00
Rework thread pool, add ability to add/remove threads at runtime
This commit is contained in:
parent
211e6c7115
commit
0a94bd7cfc
9 changed files with 468 additions and 379 deletions
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
|
||||
FUSE::ReadDirCOSR::ReadDirCOSR(unsigned concurrency_)
|
||||
: _tp(concurrency_,"readdir.cosr")
|
||||
: _tp(concurrency_,concurrency_,"readdir.cosr")
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -63,7 +63,7 @@ namespace l
|
|||
static
|
||||
inline
|
||||
std::vector<std::future<DIR*>>
|
||||
opendir(UnboundedThreadPool &tp_,
|
||||
opendir(ThreadPool &tp_,
|
||||
const Branches::CPtr &branches_,
|
||||
char const *dirname_,
|
||||
uid_t const uid_,
|
||||
|
|
@ -148,7 +148,7 @@ namespace l
|
|||
static
|
||||
inline
|
||||
int
|
||||
readdir(UnboundedThreadPool &tp_,
|
||||
readdir(ThreadPool &tp_,
|
||||
const Branches::CPtr &branches_,
|
||||
const char *dirname_,
|
||||
fuse_dirents_t *buf_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue