Query the occupancy (recommended number of work items) for the pool. * Do not call this function directly. It is intended for use with the * asio::query customisation point. * * For example: * @code auto ex = my_thread_pool.executor(); * std::size_t occupancy = asio::query( * ex, asio::execution::occupancy); @endcode */
| 555 | * ex, asio::execution::occupancy); @endcode |
| 556 | */ |
| 557 | std::size_t query(execution::occupancy_t) const ASIO_NOEXCEPT |
| 558 | { |
| 559 | return static_cast<std::size_t>(pool_->num_threads_); |
| 560 | } |
| 561 | |
| 562 | public: |
| 563 | /// Determine whether the thread pool is running in the current thread. |
no outgoing calls
no test coverage detected