| 64 | } |
| 65 | |
| 66 | void enqueue(exec::_pool_::task_base* task, std::uint32_t tid = 0) noexcept |
| 67 | { |
| 68 | asio_impl::post(pool_, [task, tid] { task->execute_(task, /*tid=*/tid); }); |
| 69 | } |
| 70 | |
| 71 | asio_impl::thread_pool pool_; |
| 72 | // Need to store implicitly the executor, thread_pool::executor() is not const |