Rework thread pool, add ability to add/remove threads at runtime

This commit is contained in:
Antonio SJ Musumeci 2023-09-02 19:27:40 -05:00
parent 211e6c7115
commit 0a94bd7cfc
9 changed files with 468 additions and 379 deletions

View file

@ -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_,