mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-04 22:00:15 -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
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue