Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jun 7, 2024
1 parent b4e1126 commit 1872e33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/ylt/coro_io/io_context_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class io_context_pool {
pool_size = 1; // set default value as 1
}

total_thread_num_ += pool_size;
// total_thread_num_ += pool_size;

for (std::size_t i = 0; i < pool_size; ++i) {
io_context_ptr io_context(new asio::io_context(1));
Expand Down Expand Up @@ -207,7 +207,7 @@ class io_context_pool {
template <typename T>
friend io_context_pool &g_io_context_pool();

static size_t get_total_thread_num() { return total_thread_num_; }
// static size_t get_total_thread_num() { return total_thread_num_; }

private:
using io_context_ptr = std::shared_ptr<asio::io_context>;
Expand All @@ -224,9 +224,9 @@ class io_context_pool {
inline static size_t total_thread_num_ = 0;
};

inline size_t get_total_thread_num() {
return io_context_pool::get_total_thread_num();
}
// inline size_t get_total_thread_num() {
// return io_context_pool::get_total_thread_num();
// }

class multithread_context_pool {
public:
Expand Down

0 comments on commit 1872e33

Please sign in to comment.