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