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

Method blocking_t query

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

Query the current value of the @c blocking property. * 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(); * if (asio::query(ex, asio::execution::blocking) * == asio::execution::blocking.always) * ... @endcode */

Source from the content-addressed store, hash-verified

464 * ... @endcode
465 */
466 ASIO_CONSTEXPR execution::blocking_t query(
467 execution::blocking_t) const ASIO_NOEXCEPT
468 {
469 return (bits_ & blocking_never)
470 ? execution::blocking_t(execution::blocking.never)
471 : ((Bits & blocking_always)
472 ? execution::blocking_t(execution::blocking.always)
473 : execution::blocking_t(execution::blocking.possibly));
474 }
475
476 /// Query the current value of the @c relationship property.
477 /**

Callers

nothing calls this directly

Calls 1

blocking_tClass · 0.85

Tested by

no test coverage detected