mirror of
https://github.com/ceph/ceph
synced 2024-12-22 03:22:00 +00:00
common/async: io_context_pool
constructor takes int64_t
Just because this is what Ceph's config uses and it saves a narrowing conversion. If we want to set a max value on the thread count, we should do it in config. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
parent
809e1304b0
commit
c7789f10fe
@ -46,7 +46,7 @@ class io_context_pool {
|
||||
}
|
||||
public:
|
||||
io_context_pool() noexcept {}
|
||||
io_context_pool(std::int16_t threadcnt) noexcept {
|
||||
io_context_pool(std::int64_t threadcnt) noexcept {
|
||||
start(threadcnt);
|
||||
}
|
||||
~io_context_pool() {
|
||||
|
Loading…
Reference in New Issue
Block a user