passenger 6.0.16 → 6.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +22 -1
  3. data/build/integration_tests.rb +6 -6
  4. data/build/ruby_tests.rb +1 -1
  5. data/build/test_basics.rb +0 -1
  6. data/src/agent/Core/Config.h +1 -1
  7. data/src/agent/Core/Controller/Config.h +1 -1
  8. data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
  9. data/src/agent/Watchdog/Config.h +1 -1
  10. data/src/cxx_supportlib/Constants.h +1 -1
  11. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +1 -1
  12. data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
  13. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
  14. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +686 -0
  15. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +56 -0
  16. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +81 -25
  17. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +68 -8
  18. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +46 -11
  19. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +4 -4
  20. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +2 -2
  21. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +1 -1
  22. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +2 -2
  23. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +4 -4
  24. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +2 -2
  25. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +2 -2
  26. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +3 -3
  27. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +2 -2
  28. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +3 -3
  29. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +4 -4
  30. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +2 -2
  31. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +2 -2
  32. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +2 -2
  33. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +2 -2
  34. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +13 -3
  35. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +14 -3
  36. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +13 -3
  37. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +30 -305
  38. data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
  39. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +17 -18
  40. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +98 -24
  41. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
  42. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +81 -15
  43. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +4 -4
  44. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +19 -11
  45. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +37 -0
  46. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +3 -1
  47. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
  48. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +10 -2
  49. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +14 -1
  50. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +18 -0
  51. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +1 -2
  52. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +7 -3
  53. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +4 -14
  54. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +22 -3
  55. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +447 -142
  56. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +57 -8
  57. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +51 -6
  58. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +5 -0
  59. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +41 -4
  60. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +5 -0
  61. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +13 -2
  62. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +13 -2
  63. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +4 -0
  64. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +9 -2
  65. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +11 -1
  66. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +52 -8
  67. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +13 -2
  68. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +5 -0
  69. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +39 -6
  70. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +5 -0
  71. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +39 -6
  72. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +5 -0
  73. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +5 -0
  74. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +5 -0
  75. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +5 -0
  76. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +5 -0
  77. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +5 -0
  78. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +5 -0
  79. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +5 -0
  80. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +6 -9
  81. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +3 -3
  82. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +3 -3
  83. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +70 -0
  84. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +146 -0
  85. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +35 -5
  86. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +13 -3
  87. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +7 -0
  88. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +180 -0
  89. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
  90. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +89 -66
  91. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +66 -45
  92. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +13 -3
  93. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1134 -0
  94. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +130 -106
  95. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +377 -3
  96. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +168 -29
  97. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +149 -203
  98. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
  99. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +256 -0
  100. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +76 -80
  101. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +40 -14
  102. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
  103. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
  104. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +12 -0
  105. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +12 -3
  106. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +12 -3
  107. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +25 -6
  108. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +25 -6
  109. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +34 -45
  110. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +28 -6
  111. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
  112. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +33 -1
  113. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +13 -3
  114. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -9
  115. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +1 -1
  116. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +33 -1
  117. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +12 -3
  118. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +40 -9
  119. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +27 -6
  120. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +104 -24
  121. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +12 -3
  122. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +70 -15
  123. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -0
  124. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +25 -0
  125. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +38 -30
  126. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +27 -6
  127. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -13
  128. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -1
  129. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -1
  130. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +2 -2
  131. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +2 -2
  132. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +17 -18
  133. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +3 -1
  134. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +13 -3
  135. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +11 -7
  136. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -13
  137. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +23 -18
  138. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +1 -1
  139. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +2 -2
  140. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +1 -1
  141. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +2 -2
  142. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +2 -2
  143. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +4 -0
  144. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +1 -1
  145. data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +1 -0
  146. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
  147. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
  148. data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +2 -2
  149. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +3 -3
  150. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
  151. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
  152. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
  153. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
  154. data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
  155. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
  156. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +10 -3
  157. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +9 -3
  158. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +9 -3
  159. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +6 -0
  160. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +8 -0
  161. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
  162. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +33 -0
  163. data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
  164. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +9 -0
  165. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +4 -2
  166. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +1 -1
  167. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +29 -0
  168. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +13 -13
  169. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +80 -95
  170. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +10 -0
  171. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
  172. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +738 -34
  173. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +38 -10
  174. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +1 -0
  175. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +2 -0
  176. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +3 -4
  177. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +1150 -1213
  178. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
  179. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +104 -12
  180. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +1 -0
  181. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +11 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +31 -331
  183. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
  184. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +173 -0
  185. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple.hpp +133 -0
  186. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +461 -566
  187. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +24 -24
  188. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +91 -0
  189. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
  190. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +73 -0
  191. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
  192. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +32 -4
  193. data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +16 -0
  194. data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +16 -16
  195. data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
  196. data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
  197. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
  198. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
  199. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
  200. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
  201. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +2 -2
  202. data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
  203. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
  204. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
  205. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
  206. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
  207. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
  208. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
  209. data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
  210. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
  211. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
  212. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
  213. data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +159 -0
  214. data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
  215. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +9 -9
  216. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +45 -45
  217. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +8 -8
  218. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +37 -38
  219. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +16 -0
  220. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +1 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +145 -90
  222. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +2 -0
  223. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +7 -7
  224. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +5 -5
  225. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +11 -9
  226. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +7 -7
  227. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
  228. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +1 -1
  229. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +8 -5
  230. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
  231. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +4 -2
  232. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +2 -1
  233. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +8 -4
  234. data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
  235. data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
  236. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
  237. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
  238. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
  239. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +6 -2
  240. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
  241. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +1 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +7 -1
  243. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +2 -2
  244. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +10 -1
  245. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +38 -43
  246. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +52 -0
  247. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +1 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
  249. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
  250. data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
  251. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +37 -7
  252. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa.hpp +1921 -0
  253. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +66 -82
  254. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +6 -0
  255. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +109 -0
  256. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
  257. data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
  258. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +732 -0
  259. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +49 -0
  260. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +586 -0
  261. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +49 -0
  262. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +166 -66
  263. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +145 -28
  264. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  265. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +1 -1
  266. data/src/ruby_native_extension/extconf.rb +1 -1
  267. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +1 -1
  268. data/src/ruby_supportlib/phusion_passenger.rb +5 -5
  269. metadata +36 -19
  270. data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +0 -19
  271. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +0 -54
  272. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +0 -20
  273. data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +0 -21
  274. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +0 -52
  275. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +0 -31
  276. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +0 -23
  277. data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +0 -91
  278. data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +0 -53
  279. data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +0 -26
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +0 -196
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -709
  282. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
  283. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
  284. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
  285. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -361
  286. data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
@@ -334,7 +334,7 @@ public:
334
334
  }
335
335
 
336
336
  /// Get the executor associated with the object.
337
- executor_type get_executor() BOOST_ASIO_NOEXCEPT
337
+ const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
338
338
  {
339
339
  return impl_.get_executor();
340
340
  }
@@ -567,7 +567,7 @@ private:
567
567
  {
568
568
  }
569
569
 
570
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
570
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
571
571
  {
572
572
  return self_->get_executor();
573
573
  }
@@ -374,7 +374,7 @@ public:
374
374
  #endif // defined(BOOST_ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
375
375
 
376
376
  /// Get the executor associated with the object.
377
- executor_type get_executor() BOOST_ASIO_NOEXCEPT
377
+ const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
378
378
  {
379
379
  return impl_.get_executor();
380
380
  }
@@ -1875,7 +1875,7 @@ private:
1875
1875
  {
1876
1876
  }
1877
1877
 
1878
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1878
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
1879
1879
  {
1880
1880
  return self_->get_executor();
1881
1881
  }
@@ -1918,7 +1918,7 @@ private:
1918
1918
  {
1919
1919
  }
1920
1920
 
1921
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1921
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
1922
1922
  {
1923
1923
  return self_->get_executor();
1924
1924
  }
@@ -455,7 +455,7 @@ public:
455
455
  }
456
456
 
457
457
  /// Get the executor associated with the object.
458
- executor_type get_executor() BOOST_ASIO_NOEXCEPT
458
+ const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
459
459
  {
460
460
  return impl_.get_executor();
461
461
  }
@@ -2640,7 +2640,7 @@ private:
2640
2640
  {
2641
2641
  }
2642
2642
 
2643
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2643
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
2644
2644
  {
2645
2645
  return self_->get_executor();
2646
2646
  }
@@ -2672,7 +2672,7 @@ private:
2672
2672
  {
2673
2673
  }
2674
2674
 
2675
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2675
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
2676
2676
  {
2677
2677
  return self_->get_executor();
2678
2678
  }
@@ -2706,7 +2706,7 @@ private:
2706
2706
  {
2707
2707
  }
2708
2708
 
2709
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2709
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
2710
2710
  {
2711
2711
  return self_->get_executor();
2712
2712
  }
@@ -688,7 +688,7 @@ private:
688
688
  {
689
689
  }
690
690
 
691
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
691
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
692
692
  {
693
693
  return self_->get_executor();
694
694
  }
@@ -721,7 +721,7 @@ private:
721
721
  {
722
722
  }
723
723
 
724
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
724
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
725
725
  {
726
726
  return self_->get_executor();
727
727
  }
@@ -1124,7 +1124,7 @@ private:
1124
1124
  {
1125
1125
  }
1126
1126
 
1127
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1127
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
1128
1128
  {
1129
1129
  return self_->get_executor();
1130
1130
  }
@@ -1158,7 +1158,7 @@ private:
1158
1158
  {
1159
1159
  }
1160
1160
 
1161
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1161
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
1162
1162
  {
1163
1163
  return self_->get_executor();
1164
1164
  }
@@ -382,7 +382,7 @@ public:
382
382
  }
383
383
 
384
384
  /// Get the executor associated with the object.
385
- executor_type get_executor() BOOST_ASIO_NOEXCEPT
385
+ const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
386
386
  {
387
387
  return impl_.get_executor();
388
388
  }
@@ -799,7 +799,7 @@ private:
799
799
  {
800
800
  }
801
801
 
802
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
802
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
803
803
  {
804
804
  return self_->get_executor();
805
805
  }
@@ -264,7 +264,7 @@ public:
264
264
  }
265
265
 
266
266
  /// Get the executor associated with the object.
267
- executor_type get_executor() BOOST_ASIO_NOEXCEPT
267
+ const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
268
268
  {
269
269
  return impl_.get_executor();
270
270
  }
@@ -590,7 +590,7 @@ private:
590
590
  {
591
591
  }
592
592
 
593
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
593
+ const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
594
594
  {
595
595
  return self_->get_executor();
596
596
  }
@@ -693,8 +693,16 @@ struct associator<Associator,
693
693
  {
694
694
  typedef typename Associator<T, DefaultCandidate>::type type;
695
695
 
696
- static type get(const allocator_binder<T, Allocator>& b,
697
- const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
696
+ static type get(const allocator_binder<T, Allocator>& b) BOOST_ASIO_NOEXCEPT
697
+ {
698
+ return Associator<T, DefaultCandidate>::get(b.get());
699
+ }
700
+
701
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
702
+ const allocator_binder<T, Allocator>& b,
703
+ const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
704
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
705
+ Associator<T, DefaultCandidate>::get(b.get(), c)))
698
706
  {
699
707
  return Associator<T, DefaultCandidate>::get(b.get(), c);
700
708
  }
@@ -707,8 +715,10 @@ struct associated_allocator<
707
715
  {
708
716
  typedef Allocator type;
709
717
 
710
- static type get(const allocator_binder<T, Allocator>& b,
718
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
719
+ const allocator_binder<T, Allocator>& b,
711
720
  const Allocator1& = Allocator1()) BOOST_ASIO_NOEXCEPT
721
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((b.get_allocator()))
712
722
  {
713
723
  return b.get_allocator();
714
724
  }
@@ -695,8 +695,17 @@ struct associator<Associator,
695
695
  {
696
696
  typedef typename Associator<T, DefaultCandidate>::type type;
697
697
 
698
- static type get(const cancellation_slot_binder<T, CancellationSlot>& b,
699
- const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
698
+ static type get(const cancellation_slot_binder<T, CancellationSlot>& b)
699
+ BOOST_ASIO_NOEXCEPT
700
+ {
701
+ return Associator<T, DefaultCandidate>::get(b.get());
702
+ }
703
+
704
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
705
+ const cancellation_slot_binder<T, CancellationSlot>& b,
706
+ const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
707
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
708
+ Associator<T, DefaultCandidate>::get(b.get(), c)))
700
709
  {
701
710
  return Associator<T, DefaultCandidate>::get(b.get(), c);
702
711
  }
@@ -709,8 +718,10 @@ struct associated_cancellation_slot<
709
718
  {
710
719
  typedef CancellationSlot type;
711
720
 
712
- static type get(const cancellation_slot_binder<T, CancellationSlot>& b,
721
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
722
+ const cancellation_slot_binder<T, CancellationSlot>& b,
713
723
  const CancellationSlot1& = CancellationSlot1()) BOOST_ASIO_NOEXCEPT
724
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((b.get_cancellation_slot()))
714
725
  {
715
726
  return b.get_cancellation_slot();
716
727
  }
@@ -743,8 +743,16 @@ struct associator<Associator, executor_binder<T, Executor>, DefaultCandidate>
743
743
  {
744
744
  typedef typename Associator<T, DefaultCandidate>::type type;
745
745
 
746
- static type get(const executor_binder<T, Executor>& b,
747
- const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
746
+ static type get(const executor_binder<T, Executor>& b) BOOST_ASIO_NOEXCEPT
747
+ {
748
+ return Associator<T, DefaultCandidate>::get(b.get());
749
+ }
750
+
751
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
752
+ const executor_binder<T, Executor>& b,
753
+ const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
754
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
755
+ Associator<T, DefaultCandidate>::get(b.get(), c)))
748
756
  {
749
757
  return Associator<T, DefaultCandidate>::get(b.get(), c);
750
758
  }
@@ -755,8 +763,10 @@ struct associated_executor<executor_binder<T, Executor>, Executor1>
755
763
  {
756
764
  typedef Executor type;
757
765
 
758
- static type get(const executor_binder<T, Executor>& b,
766
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX(type) get(
767
+ const executor_binder<T, Executor>& b,
759
768
  const Executor1& = Executor1()) BOOST_ASIO_NOEXCEPT
769
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((b.get_executor()))
760
770
  {
761
771
  return b.get_executor();
762
772
  }
@@ -19,16 +19,12 @@
19
19
  #include <boost/asio/associated_executor.hpp>
20
20
  #include <boost/asio/async_result.hpp>
21
21
  #include <boost/asio/detail/base_from_cancellation_state.hpp>
22
+ #include <boost/asio/detail/composed_work.hpp>
22
23
  #include <boost/asio/detail/handler_alloc_helpers.hpp>
23
24
  #include <boost/asio/detail/handler_cont_helpers.hpp>
24
25
  #include <boost/asio/detail/handler_invoke_helpers.hpp>
25
26
  #include <boost/asio/detail/type_traits.hpp>
26
27
  #include <boost/asio/detail/variadic_templates.hpp>
27
- #include <boost/asio/execution/executor.hpp>
28
- #include <boost/asio/execution/outstanding_work.hpp>
29
- #include <boost/asio/executor_work_guard.hpp>
30
- #include <boost/asio/is_executor.hpp>
31
- #include <boost/asio/system_executor.hpp>
32
28
 
33
29
  #include <boost/asio/detail/push_options.hpp>
34
30
 
@@ -36,274 +32,6 @@ namespace boost {
36
32
  namespace asio {
37
33
  namespace detail {
38
34
 
39
- template <typename Executor, typename = void>
40
- class composed_work_guard
41
- {
42
- public:
43
- typedef typename decay<
44
- typename prefer_result<Executor,
45
- execution::outstanding_work_t::tracked_t
46
- >::type
47
- >::type executor_type;
48
-
49
- composed_work_guard(const Executor& ex)
50
- : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked))
51
- {
52
- }
53
-
54
- void reset()
55
- {
56
- }
57
-
58
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
59
- {
60
- return executor_;
61
- }
62
-
63
- private:
64
- executor_type executor_;
65
- };
66
-
67
- template <>
68
- struct composed_work_guard<system_executor>
69
- {
70
- public:
71
- typedef system_executor executor_type;
72
-
73
- composed_work_guard(const system_executor&)
74
- {
75
- }
76
-
77
- void reset()
78
- {
79
- }
80
-
81
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
82
- {
83
- return system_executor();
84
- }
85
- };
86
-
87
- #if !defined(BOOST_ASIO_NO_TS_EXECUTORS)
88
-
89
- template <typename Executor>
90
- struct composed_work_guard<Executor,
91
- typename enable_if<
92
- !execution::is_executor<Executor>::value
93
- >::type> : executor_work_guard<Executor>
94
- {
95
- composed_work_guard(const Executor& ex)
96
- : executor_work_guard<Executor>(ex)
97
- {
98
- }
99
- };
100
-
101
- #endif // !defined(BOOST_ASIO_NO_TS_EXECUTORS)
102
-
103
- template <typename>
104
- struct composed_io_executors;
105
-
106
- template <>
107
- struct composed_io_executors<void()>
108
- {
109
- composed_io_executors() BOOST_ASIO_NOEXCEPT
110
- : head_(system_executor())
111
- {
112
- }
113
-
114
- typedef system_executor head_type;
115
- system_executor head_;
116
- };
117
-
118
- inline composed_io_executors<void()> make_composed_io_executors()
119
- {
120
- return composed_io_executors<void()>();
121
- }
122
-
123
- template <typename Head>
124
- struct composed_io_executors<void(Head)>
125
- {
126
- explicit composed_io_executors(const Head& ex) BOOST_ASIO_NOEXCEPT
127
- : head_(ex)
128
- {
129
- }
130
-
131
- typedef Head head_type;
132
- Head head_;
133
- };
134
-
135
- template <typename Head>
136
- inline composed_io_executors<void(Head)>
137
- make_composed_io_executors(const Head& head)
138
- {
139
- return composed_io_executors<void(Head)>(head);
140
- }
141
-
142
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
143
-
144
- template <typename Head, typename... Tail>
145
- struct composed_io_executors<void(Head, Tail...)>
146
- {
147
- explicit composed_io_executors(const Head& head,
148
- const Tail&... tail) BOOST_ASIO_NOEXCEPT
149
- : head_(head),
150
- tail_(tail...)
151
- {
152
- }
153
-
154
- void reset()
155
- {
156
- head_.reset();
157
- tail_.reset();
158
- }
159
-
160
- typedef Head head_type;
161
- Head head_;
162
- composed_io_executors<void(Tail...)> tail_;
163
- };
164
-
165
- template <typename Head, typename... Tail>
166
- inline composed_io_executors<void(Head, Tail...)>
167
- make_composed_io_executors(const Head& head, const Tail&... tail)
168
- {
169
- return composed_io_executors<void(Head, Tail...)>(head, tail...);
170
- }
171
-
172
- #else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
173
-
174
- #define BOOST_ASIO_PRIVATE_COMPOSED_IO_EXECUTORS_DEF(n) \
175
- template <typename Head, BOOST_ASIO_VARIADIC_TPARAMS(n)> \
176
- struct composed_io_executors<void(Head, BOOST_ASIO_VARIADIC_TARGS(n))> \
177
- { \
178
- explicit composed_io_executors(const Head& head, \
179
- BOOST_ASIO_VARIADIC_CONSTREF_PARAMS(n)) BOOST_ASIO_NOEXCEPT \
180
- : head_(head), \
181
- tail_(BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)) \
182
- { \
183
- } \
184
- \
185
- void reset() \
186
- { \
187
- head_.reset(); \
188
- tail_.reset(); \
189
- } \
190
- \
191
- typedef Head head_type; \
192
- Head head_; \
193
- composed_io_executors<void(BOOST_ASIO_VARIADIC_TARGS(n))> tail_; \
194
- }; \
195
- \
196
- template <typename Head, BOOST_ASIO_VARIADIC_TPARAMS(n)> \
197
- inline composed_io_executors<void(Head, BOOST_ASIO_VARIADIC_TARGS(n))> \
198
- make_composed_io_executors(const Head& head, \
199
- BOOST_ASIO_VARIADIC_CONSTREF_PARAMS(n)) \
200
- { \
201
- return composed_io_executors< \
202
- void(Head, BOOST_ASIO_VARIADIC_TARGS(n))>( \
203
- head, BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)); \
204
- } \
205
- /**/
206
- BOOST_ASIO_VARIADIC_GENERATE(BOOST_ASIO_PRIVATE_COMPOSED_IO_EXECUTORS_DEF)
207
- #undef BOOST_ASIO_PRIVATE_COMPOSED_IO_EXECUTORS_DEF
208
-
209
- #endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
210
-
211
- template <typename>
212
- struct composed_work;
213
-
214
- template <>
215
- struct composed_work<void()>
216
- {
217
- typedef composed_io_executors<void()> executors_type;
218
-
219
- composed_work(const executors_type&) BOOST_ASIO_NOEXCEPT
220
- : head_(system_executor())
221
- {
222
- }
223
-
224
- void reset()
225
- {
226
- head_.reset();
227
- }
228
-
229
- typedef system_executor head_type;
230
- composed_work_guard<system_executor> head_;
231
- };
232
-
233
- template <typename Head>
234
- struct composed_work<void(Head)>
235
- {
236
- typedef composed_io_executors<void(Head)> executors_type;
237
-
238
- explicit composed_work(const executors_type& ex) BOOST_ASIO_NOEXCEPT
239
- : head_(ex.head_)
240
- {
241
- }
242
-
243
- void reset()
244
- {
245
- head_.reset();
246
- }
247
-
248
- typedef Head head_type;
249
- composed_work_guard<Head> head_;
250
- };
251
-
252
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
253
-
254
- template <typename Head, typename... Tail>
255
- struct composed_work<void(Head, Tail...)>
256
- {
257
- typedef composed_io_executors<void(Head, Tail...)> executors_type;
258
-
259
- explicit composed_work(const executors_type& ex) BOOST_ASIO_NOEXCEPT
260
- : head_(ex.head_),
261
- tail_(ex.tail_)
262
- {
263
- }
264
-
265
- void reset()
266
- {
267
- head_.reset();
268
- tail_.reset();
269
- }
270
-
271
- typedef Head head_type;
272
- composed_work_guard<Head> head_;
273
- composed_work<void(Tail...)> tail_;
274
- };
275
-
276
- #else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
277
-
278
- #define BOOST_ASIO_PRIVATE_COMPOSED_WORK_DEF(n) \
279
- template <typename Head, BOOST_ASIO_VARIADIC_TPARAMS(n)> \
280
- struct composed_work<void(Head, BOOST_ASIO_VARIADIC_TARGS(n))> \
281
- { \
282
- typedef composed_io_executors<void(Head, \
283
- BOOST_ASIO_VARIADIC_TARGS(n))> executors_type; \
284
- \
285
- explicit composed_work(const executors_type& ex) BOOST_ASIO_NOEXCEPT \
286
- : head_(ex.head_), \
287
- tail_(ex.tail_) \
288
- { \
289
- } \
290
- \
291
- void reset() \
292
- { \
293
- head_.reset(); \
294
- tail_.reset(); \
295
- } \
296
- \
297
- typedef Head head_type; \
298
- composed_work_guard<Head> head_; \
299
- composed_work<void(BOOST_ASIO_VARIADIC_TARGS(n))> tail_; \
300
- }; \
301
- /**/
302
- BOOST_ASIO_VARIADIC_GENERATE(BOOST_ASIO_PRIVATE_COMPOSED_WORK_DEF)
303
- #undef BOOST_ASIO_PRIVATE_COMPOSED_WORK_DEF
304
-
305
- #endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
306
-
307
35
  #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
308
36
  template <typename Impl, typename Work, typename Handler, typename Signature>
309
37
  class composed_op;
@@ -344,11 +72,16 @@ public:
344
72
  }
345
73
  #endif // defined(BOOST_ASIO_HAS_MOVE)
346
74
 
347
- typedef typename associated_executor<Handler,
348
- typename composed_work_guard<
349
- typename Work::head_type
350
- >::executor_type
351
- >::type executor_type;
75
+ typedef typename composed_work_guard<
76
+ typename Work::head_type>::executor_type io_executor_type;
77
+
78
+ io_executor_type get_io_executor() const BOOST_ASIO_NOEXCEPT
79
+ {
80
+ return work_.head_.get_executor();
81
+ }
82
+
83
+ typedef typename associated_executor<Handler, io_executor_type>::type
84
+ executor_type;
352
85
 
353
86
  executor_type get_executor() const BOOST_ASIO_NOEXCEPT
354
87
  {
@@ -441,6 +174,11 @@ public:
441
174
  BOOST_ASIO_MOVE_CAST(OutFilter)(out_filter));
442
175
  }
443
176
 
177
+ cancellation_type_t cancelled() const BOOST_ASIO_NOEXCEPT
178
+ {
179
+ return base_from_cancellation_state<Handler>::cancelled();
180
+ }
181
+
444
182
  //private:
445
183
  Impl impl_;
446
184
  Work work_;
@@ -549,29 +287,6 @@ inline initiate_composed_op<Signature, Executors> make_initiate_composed_op(
549
287
  BOOST_ASIO_MOVE_CAST(composed_io_executors<Executors>)(executors));
550
288
  }
551
289
 
552
- template <typename IoObject>
553
- inline typename IoObject::executor_type
554
- get_composed_io_executor(IoObject& io_object,
555
- typename enable_if<
556
- !is_executor<IoObject>::value
557
- >::type* = 0,
558
- typename enable_if<
559
- !execution::is_executor<IoObject>::value
560
- >::type* = 0)
561
- {
562
- return io_object.get_executor();
563
- }
564
-
565
- template <typename Executor>
566
- inline const Executor& get_composed_io_executor(const Executor& ex,
567
- typename enable_if<
568
- is_executor<Executor>::value
569
- || execution::is_executor<Executor>::value
570
- >::type* = 0)
571
- {
572
- return ex;
573
- }
574
-
575
290
  } // namespace detail
576
291
 
577
292
  #if !defined(GENERATING_DOCUMENTATION)
@@ -584,9 +299,19 @@ struct associator<Associator,
584
299
  DefaultCandidate>
585
300
  : Associator<Handler, DefaultCandidate>
586
301
  {
587
- static typename Associator<Handler, DefaultCandidate>::type get(
588
- const detail::composed_op<Impl, Work, Handler, Signature>& h,
589
- const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
302
+ static typename Associator<Handler, DefaultCandidate>::type
303
+ get(const detail::composed_op<Impl, Work, Handler, Signature>& h)
304
+ BOOST_ASIO_NOEXCEPT
305
+ {
306
+ return Associator<Handler, DefaultCandidate>::get(h.handler_);
307
+ }
308
+
309
+ static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
310
+ typename Associator<Handler, DefaultCandidate>::type)
311
+ get(const detail::composed_op<Impl, Work, Handler, Signature>& h,
312
+ const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
313
+ BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
314
+ Associator<Handler, DefaultCandidate>::get(h.handler_, c)))
590
315
  {
591
316
  return Associator<Handler, DefaultCandidate>::get(h.handler_, c);
592
317
  }
@@ -609,7 +334,7 @@ struct associator<Associator,
609
334
  * handler. The remaining arguments are any arguments that originate from the
610
335
  * completion handlers of any asynchronous operations performed by the
611
336
  * implementation.
612
-
337
+ *
613
338
  * @param token The completion token.
614
339
  *
615
340
  * @param io_objects_or_executors Zero or more I/O objects or I/O executors for