mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +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:
|
public:
|
||||||
io_context_pool() noexcept {}
|
io_context_pool() noexcept {}
|
||||||
io_context_pool(std::int16_t threadcnt) noexcept {
|
io_context_pool(std::int64_t threadcnt) noexcept {
|
||||||
start(threadcnt);
|
start(threadcnt);
|
||||||
}
|
}
|
||||||
~io_context_pool() {
|
~io_context_pool() {
|
||||||
|
Loading…
Reference in New Issue
Block a user