| 1108 | } |
| 1109 | |
| 1110 | void any_executor_query_test() |
| 1111 | { |
| 1112 | thread_pool pool(1); |
| 1113 | execution::any_executor< |
| 1114 | execution::blocking_t, |
| 1115 | execution::outstanding_work_t, |
| 1116 | execution::relationship_t, |
| 1117 | execution::mapping_t::thread_t, |
| 1118 | execution::occupancy_t> |
| 1119 | ex(pool.executor()); |
| 1120 | |
| 1121 | BOOST_ASIO_CHECK( |
| 1122 | boost::asio::query(ex, boost::asio::execution::blocking) |
| 1123 | == boost::asio::execution::blocking.possibly); |
| 1124 | |
| 1125 | BOOST_ASIO_CHECK( |
| 1126 | boost::asio::query(ex, boost::asio::execution::blocking.possibly) |
| 1127 | == boost::asio::execution::blocking.possibly); |
| 1128 | |
| 1129 | BOOST_ASIO_CHECK( |
| 1130 | boost::asio::query(ex, boost::asio::execution::outstanding_work) |
| 1131 | == boost::asio::execution::outstanding_work.untracked); |
| 1132 | |
| 1133 | BOOST_ASIO_CHECK( |
| 1134 | boost::asio::query(ex, boost::asio::execution::outstanding_work.untracked) |
| 1135 | == boost::asio::execution::outstanding_work.untracked); |
| 1136 | |
| 1137 | BOOST_ASIO_CHECK( |
| 1138 | boost::asio::query(ex, boost::asio::execution::relationship) |
| 1139 | == boost::asio::execution::relationship.fork); |
| 1140 | |
| 1141 | BOOST_ASIO_CHECK( |
| 1142 | boost::asio::query(ex, boost::asio::execution::relationship.fork) |
| 1143 | == boost::asio::execution::relationship.fork); |
| 1144 | |
| 1145 | BOOST_ASIO_CHECK( |
| 1146 | boost::asio::query(ex, boost::asio::execution::mapping) |
| 1147 | == boost::asio::execution::mapping.thread); |
| 1148 | |
| 1149 | BOOST_ASIO_CHECK( |
| 1150 | boost::asio::query(ex, boost::asio::execution::occupancy) |
| 1151 | == 1); |
| 1152 | } |
| 1153 | |
| 1154 | void any_executor_execute_test() |
| 1155 | { |