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

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