mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04: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
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
|
||||
FUSE::ReadDirCOR::ReadDirCOR(unsigned concurrency_)
|
||||
: _tp(concurrency_,"readdir.cor")
|
||||
: _tp(concurrency_,concurrency_,"readdir.cor")
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -117,7 +117,7 @@ namespace l
|
|||
|
||||
static
|
||||
std::vector<int>
|
||||
concurrent_readdir(UnboundedThreadPool &tp_,
|
||||
concurrent_readdir(ThreadPool &tp_,
|
||||
const Branches::CPtr &branches_,
|
||||
const char *dirname_,
|
||||
fuse_dirents_t *buf_,
|
||||
|
|
@ -171,7 +171,7 @@ namespace l
|
|||
|
||||
static
|
||||
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