Skip to content

Commit fa52e97

Browse files
committed
[asio_thread_pool] Change executor to get_executor
1 parent 97ec2b5 commit fa52e97

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/execpools/asio/asio_thread_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace execpools {
3232
}
3333

3434
[[nodiscard]]
35-
auto executor() const {
35+
auto get_executor() const {
3636
return executor_;
3737
}
3838

test/execpools/test_asio_thread_pool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ namespace {
175175
const auto current_thread_id = std::this_thread::get_id();
176176

177177
execpools::asio_thread_pool pool{1ul};
178-
asioexec::asio_impl::system_timer timer{pool.executor()};
178+
asioexec::asio_impl::system_timer timer{pool.get_executor()};
179179
const auto [other_thread_id] =
180180
stdexec::sync_wait(timer.async_wait(asioexec::use_sender) | stdexec::then([](auto&&...) {
181181
return std::this_thread::get_id();
@@ -184,6 +184,6 @@ namespace {
184184
REQUIRE(current_thread_id != other_thread_id);
185185

186186
// demo to access underlying execution context
187-
asioexec::asio_impl::query(pool.executor(), asioexec::asio_impl::execution::context_t{}).stop();
187+
asioexec::asio_impl::query(pool.get_executor(), asioexec::asio_impl::execution::context_t{}).stop();
188188
}
189189
} // namespace

0 commit comments

Comments
 (0)