MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / query

Function query

3rd/asio-1.24.0/include/asio/thread_pool.hpp:557–560  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

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
562public:
563 /// Determine whether the thread pool is running in the current thread.

Callers 15

implClass · 0.85
io_context.hppFile · 0.85
create_implementationFunction · 0.85
query_helperFunction · 0.85
buffer_registrationClass · 0.85
io_object_implClass · 0.85
get_iocp_serviceMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected