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
@@ -1,709 +0,0 @@
1
- //
2
- // impl/compose.hpp
3
- // ~~~~~~~~~~~~~~~~
4
- //
5
- // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
- //
7
- // Distributed under the Boost Software License, Version 1.0. (See accompanying
8
- // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
- //
10
-
11
- #ifndef BOOST_ASIO_IMPL_COMPOSE_HPP
12
- #define BOOST_ASIO_IMPL_COMPOSE_HPP
13
-
14
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15
- # pragma once
16
- #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
-
18
- #include <boost/asio/detail/config.hpp>
19
- #include <boost/asio/associated_executor.hpp>
20
- #include <boost/asio/detail/base_from_cancellation_state.hpp>
21
- #include <boost/asio/detail/handler_alloc_helpers.hpp>
22
- #include <boost/asio/detail/handler_cont_helpers.hpp>
23
- #include <boost/asio/detail/handler_invoke_helpers.hpp>
24
- #include <boost/asio/detail/type_traits.hpp>
25
- #include <boost/asio/detail/variadic_templates.hpp>
26
- #include <boost/asio/execution/executor.hpp>
27
- #include <boost/asio/execution/outstanding_work.hpp>
28
- #include <boost/asio/executor_work_guard.hpp>
29
- #include <boost/asio/is_executor.hpp>
30
- #include <boost/asio/system_executor.hpp>
31
-
32
- #include <boost/asio/detail/push_options.hpp>
33
-
34
- namespace boost {
35
- namespace asio {
36
-
37
- namespace detail
38
- {
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
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
308
- template <typename Impl, typename Work, typename Handler, typename Signature>
309
- class composed_op;
310
-
311
- template <typename Impl, typename Work, typename Handler,
312
- typename R, typename... Args>
313
- class composed_op<Impl, Work, Handler, R(Args...)>
314
- #else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
315
- template <typename Impl, typename Work, typename Handler, typename Signature>
316
- class composed_op
317
- #endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
318
- : public base_from_cancellation_state<Handler>
319
- {
320
- public:
321
- template <typename I, typename W, typename H>
322
- composed_op(BOOST_ASIO_MOVE_ARG(I) impl,
323
- BOOST_ASIO_MOVE_ARG(W) work,
324
- BOOST_ASIO_MOVE_ARG(H) handler)
325
- : base_from_cancellation_state<Handler>(
326
- handler, enable_terminal_cancellation()),
327
- impl_(BOOST_ASIO_MOVE_CAST(I)(impl)),
328
- work_(BOOST_ASIO_MOVE_CAST(W)(work)),
329
- handler_(BOOST_ASIO_MOVE_CAST(H)(handler)),
330
- invocations_(0)
331
- {
332
- }
333
-
334
- #if defined(BOOST_ASIO_HAS_MOVE)
335
- composed_op(composed_op&& other)
336
- : base_from_cancellation_state<Handler>(
337
- BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
338
- Handler>)(other)),
339
- impl_(BOOST_ASIO_MOVE_CAST(Impl)(other.impl_)),
340
- work_(BOOST_ASIO_MOVE_CAST(Work)(other.work_)),
341
- handler_(BOOST_ASIO_MOVE_CAST(Handler)(other.handler_)),
342
- invocations_(other.invocations_)
343
- {
344
- }
345
- #endif // defined(BOOST_ASIO_HAS_MOVE)
346
-
347
- typedef typename associated_executor<Handler,
348
- typename composed_work_guard<
349
- typename Work::head_type
350
- >::executor_type
351
- >::type executor_type;
352
-
353
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
354
- {
355
- return (get_associated_executor)(handler_, work_.head_.get_executor());
356
- }
357
-
358
- typedef typename associated_allocator<Handler,
359
- std::allocator<void> >::type allocator_type;
360
-
361
- allocator_type get_allocator() const BOOST_ASIO_NOEXCEPT
362
- {
363
- return (get_associated_allocator)(handler_, std::allocator<void>());
364
- }
365
-
366
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
367
-
368
- template<typename... T>
369
- void operator()(BOOST_ASIO_MOVE_ARG(T)... t)
370
- {
371
- if (invocations_ < ~0u)
372
- ++invocations_;
373
- this->get_cancellation_state().slot().clear();
374
- impl_(*this, BOOST_ASIO_MOVE_CAST(T)(t)...);
375
- }
376
-
377
- void complete(Args... args)
378
- {
379
- this->work_.reset();
380
- BOOST_ASIO_MOVE_OR_LVALUE(Handler)(this->handler_)(
381
- BOOST_ASIO_MOVE_CAST(Args)(args)...);
382
- }
383
-
384
- #else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
385
-
386
- void operator()()
387
- {
388
- if (invocations_ < ~0u)
389
- ++invocations_;
390
- this->get_cancellation_state().slot().clear();
391
- impl_(*this);
392
- }
393
-
394
- void complete()
395
- {
396
- this->work_.reset();
397
- BOOST_ASIO_MOVE_OR_LVALUE(Handler)(this->handler_)();
398
- }
399
-
400
- #define BOOST_ASIO_PRIVATE_COMPOSED_OP_DEF(n) \
401
- template<BOOST_ASIO_VARIADIC_TPARAMS(n)> \
402
- void operator()(BOOST_ASIO_VARIADIC_MOVE_PARAMS(n)) \
403
- { \
404
- if (invocations_ < ~0u) \
405
- ++invocations_; \
406
- this->get_cancellation_state().slot().clear(); \
407
- impl_(*this, BOOST_ASIO_VARIADIC_MOVE_ARGS(n)); \
408
- } \
409
- \
410
- template<BOOST_ASIO_VARIADIC_TPARAMS(n)> \
411
- void complete(BOOST_ASIO_VARIADIC_MOVE_PARAMS(n)) \
412
- { \
413
- this->work_.reset(); \
414
- BOOST_ASIO_MOVE_OR_LVALUE(Handler)(this->handler_)( \
415
- BOOST_ASIO_VARIADIC_MOVE_ARGS(n)); \
416
- } \
417
- /**/
418
- BOOST_ASIO_VARIADIC_GENERATE(BOOST_ASIO_PRIVATE_COMPOSED_OP_DEF)
419
- #undef BOOST_ASIO_PRIVATE_COMPOSED_OP_DEF
420
-
421
- #endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
422
-
423
- void reset_cancellation_state()
424
- {
425
- base_from_cancellation_state<Handler>::reset_cancellation_state(handler_);
426
- }
427
-
428
- template <typename Filter>
429
- void reset_cancellation_state(BOOST_ASIO_MOVE_ARG(Filter) filter)
430
- {
431
- base_from_cancellation_state<Handler>::reset_cancellation_state(handler_,
432
- BOOST_ASIO_MOVE_CAST(Filter)(filter));
433
- }
434
-
435
- template <typename InFilter, typename OutFilter>
436
- void reset_cancellation_state(BOOST_ASIO_MOVE_ARG(InFilter) in_filter,
437
- BOOST_ASIO_MOVE_ARG(OutFilter) out_filter)
438
- {
439
- base_from_cancellation_state<Handler>::reset_cancellation_state(handler_,
440
- BOOST_ASIO_MOVE_CAST(InFilter)(in_filter),
441
- BOOST_ASIO_MOVE_CAST(OutFilter)(out_filter));
442
- }
443
-
444
- //private:
445
- Impl impl_;
446
- Work work_;
447
- Handler handler_;
448
- unsigned invocations_;
449
- };
450
-
451
- template <typename Impl, typename Work, typename Handler, typename Signature>
452
- inline asio_handler_allocate_is_deprecated
453
- asio_handler_allocate(std::size_t size,
454
- composed_op<Impl, Work, Handler, Signature>* this_handler)
455
- {
456
- #if defined(BOOST_ASIO_NO_DEPRECATED)
457
- boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
458
- return asio_handler_allocate_is_no_longer_used();
459
- #else // defined(BOOST_ASIO_NO_DEPRECATED)
460
- return boost_asio_handler_alloc_helpers::allocate(
461
- size, this_handler->handler_);
462
- #endif // defined(BOOST_ASIO_NO_DEPRECATED)
463
- }
464
-
465
- template <typename Impl, typename Work, typename Handler, typename Signature>
466
- inline asio_handler_deallocate_is_deprecated
467
- asio_handler_deallocate(void* pointer, std::size_t size,
468
- composed_op<Impl, Work, Handler, Signature>* this_handler)
469
- {
470
- boost_asio_handler_alloc_helpers::deallocate(
471
- pointer, size, this_handler->handler_);
472
- #if defined(BOOST_ASIO_NO_DEPRECATED)
473
- return asio_handler_deallocate_is_no_longer_used();
474
- #endif // defined(BOOST_ASIO_NO_DEPRECATED)
475
- }
476
-
477
- template <typename Impl, typename Work, typename Handler, typename Signature>
478
- inline bool asio_handler_is_continuation(
479
- composed_op<Impl, Work, Handler, Signature>* this_handler)
480
- {
481
- return this_handler->invocations_ > 1 ? true
482
- : boost_asio_handler_cont_helpers::is_continuation(
483
- this_handler->handler_);
484
- }
485
-
486
- template <typename Function, typename Impl,
487
- typename Work, typename Handler, typename Signature>
488
- inline asio_handler_invoke_is_deprecated
489
- asio_handler_invoke(Function& function,
490
- composed_op<Impl, Work, Handler, Signature>* this_handler)
491
- {
492
- boost_asio_handler_invoke_helpers::invoke(
493
- function, this_handler->handler_);
494
- #if defined(BOOST_ASIO_NO_DEPRECATED)
495
- return asio_handler_invoke_is_no_longer_used();
496
- #endif // defined(BOOST_ASIO_NO_DEPRECATED)
497
- }
498
-
499
- template <typename Function, typename Impl,
500
- typename Work, typename Handler, typename Signature>
501
- inline asio_handler_invoke_is_deprecated
502
- asio_handler_invoke(const Function& function,
503
- composed_op<Impl, Work, Handler, Signature>* this_handler)
504
- {
505
- boost_asio_handler_invoke_helpers::invoke(
506
- function, this_handler->handler_);
507
- #if defined(BOOST_ASIO_NO_DEPRECATED)
508
- return asio_handler_invoke_is_no_longer_used();
509
- #endif // defined(BOOST_ASIO_NO_DEPRECATED)
510
- }
511
-
512
- template <typename Signature, typename Executors>
513
- class initiate_composed_op
514
- {
515
- public:
516
- typedef typename composed_io_executors<Executors>::head_type executor_type;
517
-
518
- template <typename T>
519
- explicit initiate_composed_op(int, BOOST_ASIO_MOVE_ARG(T) executors)
520
- : executors_(BOOST_ASIO_MOVE_CAST(T)(executors))
521
- {
522
- }
523
-
524
- executor_type get_executor() const BOOST_ASIO_NOEXCEPT
525
- {
526
- return executors_.head_;
527
- }
528
-
529
- template <typename Handler, typename Impl>
530
- void operator()(BOOST_ASIO_MOVE_ARG(Handler) handler,
531
- BOOST_ASIO_MOVE_ARG(Impl) impl) const
532
- {
533
- composed_op<typename decay<Impl>::type, composed_work<Executors>,
534
- typename decay<Handler>::type, Signature>(
535
- BOOST_ASIO_MOVE_CAST(Impl)(impl),
536
- composed_work<Executors>(executors_),
537
- BOOST_ASIO_MOVE_CAST(Handler)(handler))();
538
- }
539
-
540
- private:
541
- composed_io_executors<Executors> executors_;
542
- };
543
-
544
- template <typename Signature, typename Executors>
545
- inline initiate_composed_op<Signature, Executors> make_initiate_composed_op(
546
- BOOST_ASIO_MOVE_ARG(composed_io_executors<Executors>) executors)
547
- {
548
- return initiate_composed_op<Signature, Executors>(0,
549
- BOOST_ASIO_MOVE_CAST(composed_io_executors<Executors>)(executors));
550
- }
551
-
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
- } // namespace detail
575
-
576
- #if !defined(GENERATING_DOCUMENTATION)
577
-
578
- template <template <typename, typename> class Associator,
579
- typename Impl, typename Work, typename Handler,
580
- typename Signature, typename DefaultCandidate>
581
- struct associator<Associator,
582
- detail::composed_op<Impl, Work, Handler, Signature>,
583
- DefaultCandidate>
584
- : Associator<Handler, DefaultCandidate>
585
- {
586
- static typename Associator<Handler, DefaultCandidate>::type get(
587
- const detail::composed_op<Impl, Work, Handler, Signature>& h,
588
- const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
589
- {
590
- return Associator<Handler, DefaultCandidate>::get(h.handler_, c);
591
- }
592
- };
593
-
594
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
595
-
596
- template <typename CompletionToken, typename Signature,
597
- typename Implementation, typename... IoObjectsOrExecutors>
598
- BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature)
599
- async_compose(BOOST_ASIO_MOVE_ARG(Implementation) implementation,
600
- BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token,
601
- BOOST_ASIO_MOVE_ARG(IoObjectsOrExecutors)... io_objects_or_executors)
602
- {
603
- return async_initiate<CompletionToken, Signature>(
604
- detail::make_initiate_composed_op<Signature>(
605
- detail::make_composed_io_executors(
606
- detail::get_composed_io_executor(
607
- BOOST_ASIO_MOVE_CAST(IoObjectsOrExecutors)(
608
- io_objects_or_executors))...)),
609
- token, BOOST_ASIO_MOVE_CAST(Implementation)(implementation));
610
- }
611
-
612
- #else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
613
-
614
- template <typename CompletionToken, typename Signature, typename Implementation>
615
- BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature)
616
- async_compose(BOOST_ASIO_MOVE_ARG(Implementation) implementation,
617
- BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token)
618
- {
619
- return async_initiate<CompletionToken, Signature>(
620
- detail::make_initiate_composed_op<Signature>(
621
- detail::make_composed_io_executors()),
622
- token, BOOST_ASIO_MOVE_CAST(Implementation)(implementation));
623
- }
624
-
625
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR(n) \
626
- BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_##n
627
-
628
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_1 \
629
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1))
630
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_2 \
631
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
632
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2))
633
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_3 \
634
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
635
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
636
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3))
637
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_4 \
638
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
639
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
640
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3)), \
641
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T4)(x4))
642
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_5 \
643
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
644
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
645
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3)), \
646
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T4)(x4)), \
647
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T5)(x5))
648
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_6 \
649
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
650
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
651
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3)), \
652
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T4)(x4)), \
653
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T5)(x5)), \
654
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T6)(x6))
655
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_7 \
656
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
657
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
658
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3)), \
659
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T4)(x4)), \
660
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T5)(x5)), \
661
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T6)(x6)), \
662
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T7)(x7))
663
- # define BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_8 \
664
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T1)(x1)), \
665
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T2)(x2)), \
666
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T3)(x3)), \
667
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T4)(x4)), \
668
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T5)(x5)), \
669
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T6)(x6)), \
670
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T7)(x7)), \
671
- detail::get_composed_io_executor(BOOST_ASIO_MOVE_CAST(T8)(x8))
672
-
673
- #define BOOST_ASIO_PRIVATE_ASYNC_COMPOSE_DEF(n) \
674
- template <typename CompletionToken, typename Signature, \
675
- typename Implementation, BOOST_ASIO_VARIADIC_TPARAMS(n)> \
676
- BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature) \
677
- async_compose(BOOST_ASIO_MOVE_ARG(Implementation) implementation, \
678
- BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token, \
679
- BOOST_ASIO_VARIADIC_MOVE_PARAMS(n)) \
680
- { \
681
- return async_initiate<CompletionToken, Signature>( \
682
- detail::make_initiate_composed_op<Signature>( \
683
- detail::make_composed_io_executors( \
684
- BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR(n))), \
685
- token, BOOST_ASIO_MOVE_CAST(Implementation)(implementation)); \
686
- } \
687
- /**/
688
- BOOST_ASIO_VARIADIC_GENERATE(BOOST_ASIO_PRIVATE_ASYNC_COMPOSE_DEF)
689
- #undef BOOST_ASIO_PRIVATE_ASYNC_COMPOSE_DEF
690
-
691
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR
692
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_1
693
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_2
694
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_3
695
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_4
696
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_5
697
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_6
698
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_7
699
- #undef BOOST_ASIO_PRIVATE_GET_COMPOSED_IO_EXECUTOR_8
700
-
701
- #endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
702
- #endif // !defined(GENERATING_DOCUMENTATION)
703
-
704
- } // namespace asio
705
- } // namespace boost
706
-
707
- #include <boost/asio/detail/pop_options.hpp>
708
-
709
- #endif // BOOST_ASIO_IMPL_COMPOSE_HPP