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

@ -19,7 +19,9 @@
#pragma once
#include "fuse_readdir_base.hpp"
#include "unbounded_thread_pool.hpp"
#include "thread_pool.hpp"
// concurrent open & read
namespace FUSE
@ -34,6 +36,6 @@ namespace FUSE
fuse_dirents_t *buf);
private:
UnboundedThreadPool _tp;
ThreadPool _tp;
};
}