passenger 6.0.8 → 6.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +288 -0
- data/CONTRIBUTORS +15 -0
- data/bin/passenger-install-nginx-module +2 -1
- data/bin/passenger-status +29 -4
- data/build/common_library.rb +2 -1
- data/build/integration_tests.rb +8 -7
- data/build/ruby_tests.rb +1 -1
- data/build/test_basics.rb +8 -5
- data/dev/copy_boost_headers +119 -71
- data/dev/index_cxx_dependencies.rb +1 -1
- data/dev/webpacketpp.patch +39 -0
- data/doc/templates/markdown.html.erb +2 -6
- data/package.json +20 -18
- data/resources/mime.types +1 -0
- data/resources/templates/error_renderer/with_details/dist/bundle.js +2 -33
- data/resources/templates/error_renderer/with_details/dist/styles.css +2 -2
- data/resources/templates/error_renderer/with_details/src/index.html.template +0 -2
- data/resources/templates/error_renderer/with_details/webpack.config.js +13 -16
- data/resources/templates/error_renderer/without_details/dist/bundle.js +0 -1
- data/resources/templates/error_renderer/without_details/dist/styles.css +1 -1
- data/resources/templates/error_renderer/without_details/webpack.config.js +13 -16
- data/resources/templates/standalone/server.erb +1 -0
- data/src/agent/Core/ApiServer.h +35 -0
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +1 -0
- data/src/agent/Core/ApplicationPool/Options.h +5 -0
- data/src/agent/Core/ApplicationPool/Pool.h +9 -1
- data/src/agent/Core/Config.h +2 -1
- data/src/agent/Core/Controller/CheckoutSession.cpp +24 -13
- data/src/agent/Core/Controller/Config.h +6 -2
- data/src/agent/Core/Controller/InitRequest.cpp +2 -0
- data/src/agent/Core/Controller/InternalUtils.cpp +32 -6
- data/src/agent/Core/Controller.h +4 -1
- data/src/agent/Core/OptionParser.h +4 -0
- data/src/agent/Core/SecurityUpdateChecker.h +4 -4
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +7 -0
- data/src/agent/Core/SpawningKit/Config.h +13 -0
- data/src/agent/Core/SpawningKit/Handshake/Prepare.h +4 -0
- data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
- data/src/agent/Core/SpawningKit/Spawner.h +1 -0
- data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +27 -1
- data/src/agent/Watchdog/Config.h +2 -1
- data/src/agent/Watchdog/WatchdogMain.cpp +4 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +32 -27
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +5 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +19 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +3 -0
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +3 -0
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +11 -0
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +7 -0
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +19 -2
- data/src/apache2_module/Hooks.cpp +1 -0
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +19 -19
- data/src/cxx_supportlib/BackgroundEventLoop.cpp +4 -0
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
- data/src/cxx_supportlib/FileDescriptor.h +8 -0
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +4 -4
- data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
- data/src/cxx_supportlib/SafeLibev.h +2 -0
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +3 -0
- data/src/cxx_supportlib/ServerKit/http_parser.cpp +740 -430
- data/src/cxx_supportlib/ServerKit/http_parser.h +156 -34
- data/src/cxx_supportlib/StaticString.h +2 -0
- data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_iterator.hpp +11 -3
- data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_iterator.hpp +27 -1
- data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_posix.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_sunos.hpp +34 -0
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/is_alignment.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +825 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +299 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +80 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +141 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +129 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +240 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +103 -16
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +299 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +1209 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +306 -125
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +50 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +831 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +703 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +308 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +637 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +130 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +143 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +120 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +102 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +461 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +756 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +229 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +55 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +633 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +751 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +754 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +230 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +753 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +479 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +43 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +39 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +43 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +307 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +237 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +176 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +73 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +415 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +206 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +85 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +139 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +804 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +8 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +165 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +276 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +192 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +578 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +38 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +42 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +40 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +36 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +36 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +7 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +16 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +22 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +155 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +367 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +21 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +27 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +21 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +47 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +10 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +207 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +142 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +114 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +916 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +251 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +21 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +44 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/{reactive_serial_port_service.ipp → posix_serial_port_service.ipp} +38 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +16 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +29 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +25 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +25 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +67 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +164 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +147 -132
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +24 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +3 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +29 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +10 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +7 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/defer.hpp → detail/initiate_defer.hpp} +52 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/dispatch.hpp → detail/initiate_dispatch.hpp} +43 -57
- data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/post.hpp → detail/initiate_post.hpp} +52 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +14 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +197 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +192 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +689 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +191 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +187 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +263 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +117 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +86 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +321 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +287 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +143 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +207 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +208 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +194 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +193 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +196 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +633 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +665 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +115 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +27 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +37 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +97 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +19 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +17 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/{reactive_serial_port_service.hpp → posix_serial_port_service.hpp} +30 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +45 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +176 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +35 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +87 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +40 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +41 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +40 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +127 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +239 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +35 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +29 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +45 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +4 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +4 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +9 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +16 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +17 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +59 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +67 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +37 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +12 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +102 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +18 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +31 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +17 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +85 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +15 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +125 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +30 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +126 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +708 -249
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +332 -83
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +263 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +62 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +324 -90
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +52 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +73 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +40 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +80 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +50 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +325 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +73 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +249 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +248 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +26 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +19 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +19 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +25 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +19 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +34 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +130 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +138 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +538 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +493 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +493 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +157 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +72 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +88 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +303 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +147 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +189 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +72 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +295 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +230 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_message.hpp +131 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +286 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_payload.hpp +141 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +122 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +150 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +679 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +143 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +614 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +201 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +241 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1177 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +1224 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +794 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +256 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +216 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +463 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +226 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +197 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +168 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +143 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +227 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +322 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +785 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +50 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +50 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +98 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +193 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +170 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +151 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +158 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +6 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +57 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +227 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +275 -201
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +141 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +498 -378
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +302 -58
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +1375 -285
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +5 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +43 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +28 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +235 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +117 -96
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +126 -122
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +15 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +23 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +98 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +81 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +32 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +180 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +3 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +86 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +111 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +136 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +139 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +243 -165
- data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +80 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +85 -57
- data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +381 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +154 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +529 -226
- data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +140 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +358 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +147 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +105 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +184 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +655 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +9 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +44 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +53 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +154 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +25 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +227 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +77 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +18 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +236 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +48 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +3 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +13 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +10 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +81 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +110 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +125 -36
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +122 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +378 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +156 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +35 -1
- data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +120 -21
- data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp +8 -15
- data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +14 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/addressof.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_impl.hpp +183 -64
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_ref_impl.hpp +169 -67
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_cast.hpp +83 -12
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_fp_cast.hpp +40 -11
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch32.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch64.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_arm.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/classify.hpp +19 -10
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/config.hpp +29 -60
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_ppc.hpp +105 -100
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_x86.hpp +107 -40
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_arm.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_x86.hpp +32 -5
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_generic.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +32 -32
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_ppc.hpp +73 -72
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/futex.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_arm_asm_common.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_ppc_asm_common.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/platform.hpp +15 -6
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/alignment_of.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/has_unique_object_representations.hpp +143 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_enum.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_nothrow_default_constructible.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/remove_cv.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_darwin_ulock.hpp +58 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_windows.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_on_address.hpp +65 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_darwin_ulock.hpp +158 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_windows.hpp +55 -26
- data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +14 -1
- data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +14 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +9 -28
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +18 -18
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf_cc.hpp +18 -18
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/is_same.hpp +36 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/requires_cxx11.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +165 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +53 -8
- data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/storage.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
- data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/requires_cxx11.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +9 -6
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_get.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_style.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/timezone.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io_v1/chrono_io.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +211 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +209 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +62 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/auto_link.hpp +7 -6
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/borland.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +16 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/codegear.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +32 -11
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/cray.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/digitalmars.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +14 -6
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc_xml.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/hp_acc.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/intel.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/metrowerks.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/mpw.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/nvcc.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/pathscale.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/vacpp.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +27 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp_zos.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +203 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_platform_config.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +184 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/platform/bsd.hpp +5 -8
- data/src/cxx_supportlib/vendor-modified/boost/config/platform/wasm.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +66 -6
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +36 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +132 -7
- data/src/cxx_supportlib/vendor-modified/boost/config/workaround.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +22 -8
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +20 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +237 -175
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +14 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/addressof.hpp +2 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +182 -135
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/allocator_version_traits.hpp +14 -15
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +14 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +11 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/construct_in_place.hpp +17 -15
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +961 -151
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +181 -57
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +59 -59
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +218 -143
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_pair.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterators.hpp +88 -69
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +14 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +48 -23
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +24 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_alloc_holder.hpp +252 -119
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool_impl.hpp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/pair.hpp +19 -91
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/placement_new.hpp +1 -7
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_resource.hpp +3 -7
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/std_fwd.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/transform_iterator.hpp +28 -28
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +249 -342
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +4 -14
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +67 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +2961 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +265 -180
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +36 -35
- data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +72 -100
- data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +95 -89
- data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +10 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/node_handle.hpp +14 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +159 -9
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +8 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/monotonic_buffer_resource.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/resource_adaptor.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/synchronized_pool_resource.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/unsynchronized_pool_resource.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/scoped_allocator.hpp +0 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +32 -43
- data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +83 -115
- data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +134 -162
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +159 -101
- data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +81 -50
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +413 -293
- data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +140 -26
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +512 -725
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +410 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple_like.hpp +156 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/mulx.hpp +79 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/requires_cxx11.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +486 -571
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +25 -24
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +74 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_tuple_like.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/alignof.hpp +57 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/alloc_construct.hpp +7 -81
- data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +472 -285
- data/src/cxx_supportlib/vendor-modified/boost/core/allocator_traits.hpp +112 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +936 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/checked_delete.hpp +20 -3
- data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +298 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/data.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/default_allocator.hpp +19 -9
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/is_same.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/lwt_unattended.hpp +66 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_pause.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/{smart_ptr → core}/detail/sp_thread_sleep.hpp +39 -21
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_yield.hpp +100 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_win32_sleep.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +1272 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +25 -16
- data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/identity.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/ignore_unused.hpp +32 -2
- data/src/cxx_supportlib/vendor-modified/boost/core/is_same.hpp +10 -15
- data/src/cxx_supportlib/vendor-modified/boost/core/launder.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +67 -22
- data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test_trait.hpp +8 -54
- data/src/cxx_supportlib/vendor-modified/boost/core/make_span.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/max_align.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/memory_resource.hpp +108 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/noinit_adaptor.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/noncopyable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/core/pointer_traits.hpp +111 -60
- data/src/cxx_supportlib/vendor-modified/boost/core/quick_exit.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +58 -15
- data/src/cxx_supportlib/vendor-modified/boost/core/serialization.hpp +131 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/size.hpp +31 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/snprintf.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/span.hpp +399 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/swap.hpp +27 -8
- data/src/cxx_supportlib/vendor-modified/boost/core/type_name.hpp +1181 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/uncaught_exceptions.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/core/verbose_terminate_handler.hpp +88 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/yield_primitives.hpp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/date_time/compiler_config.hpp +0 -24
- data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/conversion.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_io.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_parsers.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +161 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/detail/workaround.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +108 -62
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/diagnostic_information.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/exception/exception.hpp +84 -2
- data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +1 -4
- data/src/cxx_supportlib/vendor-modified/boost/exception/to_string.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/epilogue.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/prologue.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/requires_cxx11.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/function/function_base.hpp +37 -32
- data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/function.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +86 -81
- data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/any_hook.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +83 -83
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +43 -43
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +63 -63
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +85 -85
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +101 -109
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +134 -128
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +35 -27
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +88 -19
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/derivation_value_traits.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +30 -30
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +10 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/avltree_node.hpp +14 -14
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +38 -40
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +84 -15
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/config_begin.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/default_header_holder.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/empty_node_checker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/exception_disposer.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +182 -102
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hook_traits.hpp +9 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +115 -69
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_iterator.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_node.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +7 -55
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/mpl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_to_value.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/rbtree_node.hpp +18 -18
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/reverse_iterator.hpp +3 -140
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_iterator.hpp +12 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_node.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_iterator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_node.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +29 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +1668 -969
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/intrusive_fwd.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +97 -17
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +97 -94
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list_hook.hpp +10 -10
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/member_value_traits.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/options.hpp +17 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +12 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/parent_from_member.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_plus_bits.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +30 -22
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/priority_compare.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +43 -43
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +51 -51
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +85 -85
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set_hook.hpp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +93 -93
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +58 -66
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +40 -40
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +152 -159
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist_hook.hpp +8 -6
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +91 -91
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +46 -46
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +59 -57
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +51 -51
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +37 -39
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +97 -97
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/trivial_value_traits.hpp +6 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +90 -83
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +17 -17
- data/src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_def.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_undef.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/enable_if.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/facade_iterator_category.hpp +10 -11
- data/src/cxx_supportlib/vendor-modified/boost/iterator/is_iterator.hpp +148 -0
- data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_concepts.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
- data/src/cxx_supportlib/vendor-modified/boost/iterator/transform_iterator.hpp +8 -4
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +40 -51
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +13 -7
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +13 -16
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +20 -2
- data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +13 -25
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +10 -121
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +17 -22
- data/src/cxx_supportlib/vendor-modified/boost/limits.hpp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +48 -36
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +91 -74
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +225 -163
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/basic_op.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/heap_sort.hpp +21 -10
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/insertion_sort.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +125 -209
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge_sort.hpp +24 -15
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +16 -5
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/search.hpp +79 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/set_difference.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/move.hpp +8 -5
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/move/algorithm.hpp +0 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +32 -6
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/addressof.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/config_begin.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/force_ptr.hpp +36 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_traits.hpp +109 -9
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +8 -32
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +268 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/reverse_iterator.hpp +40 -33
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +263 -51
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/workaround.hpp +82 -3
- data/src/cxx_supportlib/vendor-modified/boost/move/make_unique.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/move/utility.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/utility_core.hpp +38 -33
- data/src/cxx_supportlib/vendor-modified/boost/mp11/algorithm.hpp +1327 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/config.hpp +149 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_append.hpp +321 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_copy_if.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +147 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_defer.hpp +119 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_fold.hpp +164 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_front.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_list.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_value_list.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list_v.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_map_find.hpp +87 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_min_element.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_plus.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_remove_if.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_value.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_void.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_with_index.hpp +385 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/function.hpp +222 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/integer_sequence.hpp +112 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/integral.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/list.hpp +472 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/set.hpp +188 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/utility.hpp +169 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/mpl/and.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/assert.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/template_arity.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/yes_no.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/bitand.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/bitor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/mpl/or.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/next_prior.hpp +3 -44
- data/src/cxx_supportlib/vendor-modified/boost/nondet_random.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/none.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/operators.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_hash.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +10 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +37 -26
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +87 -26
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/unmatched_argument.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/overloads.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/void.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/binding.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/parameter/template_keyword.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/parameter/value_type.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp +22 -9
- data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/pool/simple_segregated_storage.hpp +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/loongarch.h +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +55 -4
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +14 -2
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +7 -2
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdc.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdcpp.h +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +8 -10
- data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +0 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +16 -33
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +0 -4
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +5 -72
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +114 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +0 -4
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +0 -6
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +17 -39
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +0 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +0 -4
- data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +29 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
- data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/config.hpp +7 -2
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/requires_cxx11.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/plus.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +79 -74
- data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +97 -113
- data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -75
- data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -147
- data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
- data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +8 -9
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +20 -19
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +23 -13
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +107 -24
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +128 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +40 -41
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +35 -4
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +638 -22
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_workaround.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +871 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +521 -37
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1576 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3130 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +106 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +921 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1874 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
- data/src/cxx_supportlib/vendor-modified/boost/{libs/regex/src/regex_traits_defaults.cpp → regex/v5/regex_traits_defaults.hpp} +719 -415
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +862 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1311 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +23 -3
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/yield_k.hpp +4 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +63 -7
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/append_int.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +51 -12
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +227 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +190 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +732 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +349 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +80 -58
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +107 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/mutex.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/requires_cxx11.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category.hpp +88 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category_impl.hpp +97 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_message.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +57 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +7 -958
- data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
- data/src/cxx_supportlib/vendor-modified/boost/system/system_error.hpp +30 -59
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +26 -0
- data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/thread_data.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/thread/scoped_thread.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/thread/thread_guard.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +141 -45
- data/src/cxx_supportlib/vendor-modified/boost/token_functions.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/tuple/detail/tuple_basic.hpp +22 -21
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/config.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +247 -168
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +242 -217
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_swappable_cxx_11.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_complete.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_function.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_integral.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_function_pointer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_nothrow_swappable.hpp +4 -24
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_swappable.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/detail/requires_cxx11.hpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/functional.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/memory.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +5 -4
- data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +818 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map_fwd.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +849 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +1324 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +2119 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/element_type.hpp +60 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +44 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/ignore_wshadow.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +210 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +95 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/restore_wshadow.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/rw_spinlock.hpp +179 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/table.hpp +556 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fwd.hpp +88 -1
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1645 -2992
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +8 -14
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/mulx.hpp +129 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/narrow_cast.hpp +44 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +263 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/requires_cxx11.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +8 -13
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +122 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +781 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +592 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +666 -227
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map_fwd.hpp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +884 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map_fwd.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +688 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set_fwd.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +387 -112
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set_fwd.hpp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/utility/base_from_member.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/utility/binary.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_variadic.hpp +190 -0
- data/src/cxx_supportlib/vendor-modified/boost/utility/in_place_factory.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/utility/result_of.hpp +33 -11
- data/src/cxx_supportlib/vendor-modified/boost/utility/string_ref.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/utility/string_view.hpp +27 -4
- data/src/cxx_supportlib/vendor-modified/boost/utility/typed_in_place_factory.hpp +6 -1
- data/src/cxx_supportlib/vendor-modified/boost/utility/value_init.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +1 -1
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/functional.hpp +2 -7
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/md5.hpp +1 -1
- data/src/helper-scripts/wsgi-loader.py +34 -17
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +16 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +12 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +24 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +10 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +39 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +26 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +6 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +8 -0
- data/src/nginx_module/ngx_http_passenger_module.c +1 -0
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/common.js +50 -29
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/cli-config.js +20 -20
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/npm-config.js +11 -11
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/syslog-config.js +3 -3
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config.js +8 -2
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/container.js +2 -1
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/logger.js +174 -146
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/console.js +4 -2
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/file.js +15 -5
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/http.js +14 -4
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports.js +26 -24
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston.js +5 -5
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/async/package.json +4 -13
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/package.json +19 -33
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/cycle/package.json +11 -29
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/eyes/package.json +12 -40
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/isstream/package.json +3 -12
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/lib/stack-trace.js +49 -24
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/package.json +4 -16
- data/src/nodejs_supportlib/vendor-copy/winston/package.json +11 -55
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +6 -0
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +16 -12
- data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +7 -2
- data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +11 -2
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +4 -2
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +12 -0
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +6 -3
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +23 -19
- data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +6 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +2 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +47 -28
- data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +65 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/public_api.rb +3 -0
- data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +12 -1
- data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +18 -18
- data/src/ruby_supportlib/phusion_passenger/request_handler.rb +4 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +5 -0
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +7 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +28 -17
- data/src/ruby_supportlib/phusion_passenger/utils.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger.rb +7 -7
- metadata +577 -150
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -637
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
- data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/boost/checked_delete.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -667
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
- data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1038
- data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
- data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
- data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1712
- data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
- data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -489
- data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
- data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/boost/pointer_to_other.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -557
- data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -236
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_thread_pause.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_interoperability.hpp +0 -182
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_posix.hpp +0 -132
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp.orig +0 -841
- data/src/cxx_supportlib/vendor-modified/boost/thread/once.hpp.orig +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +0 -278
- data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +0 -265
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/daily-rotate-file.js +0 -601
- data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/webhook.js +0 -146
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/LICENSE +0 -19
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/lib/pkginfo.js +0 -136
- data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/package.json +0 -56
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/COPYING +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/changelog.md +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/readme.md +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/base64/base64.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/client.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/close.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio_ssl.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/chrono.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/connection_hdl.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/cpp11.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/memory.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/network.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/platforms.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/random.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/regex.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/stdint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/system_error.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/thread.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/time.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/type_traits.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/basic.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/none.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_client.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/boost_config.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core_client.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_client.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_server.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection_base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint_base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/error.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/extension.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/frame.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/constants.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/parser.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/request.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/response.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/parser.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/request.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/response.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/connection_impl.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/basic.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/levels.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/stub.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/syslog.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/message.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/pool.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi00.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi07.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi08.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi13.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/processor.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/none.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/random_device.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/server.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/sha1/sha1.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/base.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/connection.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/uri.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utf8_validator.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utilities.hpp +0 -0
- /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/version.hpp +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
// impl/spawn.hpp
|
3
3
|
// ~~~~~~~~~~~~~~
|
4
4
|
//
|
5
|
-
// Copyright (c) 2003-
|
5
|
+
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
6
6
|
//
|
7
7
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
8
8
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
@@ -17,404 +17,1495 @@
|
|
17
17
|
|
18
18
|
#include <boost/asio/detail/config.hpp>
|
19
19
|
#include <boost/asio/associated_allocator.hpp>
|
20
|
+
#include <boost/asio/associated_cancellation_slot.hpp>
|
20
21
|
#include <boost/asio/associated_executor.hpp>
|
21
22
|
#include <boost/asio/async_result.hpp>
|
22
23
|
#include <boost/asio/bind_executor.hpp>
|
23
24
|
#include <boost/asio/detail/atomic_count.hpp>
|
25
|
+
#include <boost/asio/detail/bind_handler.hpp>
|
24
26
|
#include <boost/asio/detail/handler_alloc_helpers.hpp>
|
25
27
|
#include <boost/asio/detail/handler_cont_helpers.hpp>
|
26
28
|
#include <boost/asio/detail/handler_invoke_helpers.hpp>
|
27
29
|
#include <boost/asio/detail/memory.hpp>
|
28
30
|
#include <boost/asio/detail/noncopyable.hpp>
|
29
31
|
#include <boost/asio/detail/type_traits.hpp>
|
32
|
+
#include <boost/asio/detail/utility.hpp>
|
33
|
+
#include <boost/asio/detail/variadic_templates.hpp>
|
30
34
|
#include <boost/system/system_error.hpp>
|
31
35
|
|
36
|
+
#if defined(BOOST_ASIO_HAS_STD_TUPLE)
|
37
|
+
# include <tuple>
|
38
|
+
#endif // defined(BOOST_ASIO_HAS_STD_TUPLE)
|
39
|
+
|
40
|
+
#if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
41
|
+
# include <boost/context/fiber.hpp>
|
42
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
43
|
+
|
32
44
|
#include <boost/asio/detail/push_options.hpp>
|
33
45
|
|
34
46
|
namespace boost {
|
35
47
|
namespace asio {
|
36
48
|
namespace detail {
|
37
49
|
|
38
|
-
|
39
|
-
|
50
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
51
|
+
inline void spawned_thread_rethrow(void* ex)
|
52
|
+
{
|
53
|
+
if (*static_cast<exception_ptr*>(ex))
|
54
|
+
rethrow_exception(*static_cast<exception_ptr*>(ex));
|
55
|
+
}
|
56
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
57
|
+
|
58
|
+
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
59
|
+
|
60
|
+
// Spawned thread implementation using Boost.Coroutine.
|
61
|
+
class spawned_coroutine_thread : public spawned_thread_base
|
62
|
+
{
|
63
|
+
public:
|
64
|
+
#if defined(BOOST_COROUTINES_UNIDIRECT) || defined(BOOST_COROUTINES_V2)
|
65
|
+
typedef boost::coroutines::pull_coroutine<void> callee_type;
|
66
|
+
typedef boost::coroutines::push_coroutine<void> caller_type;
|
67
|
+
#else
|
68
|
+
typedef boost::coroutines::coroutine<void()> callee_type;
|
69
|
+
typedef boost::coroutines::coroutine<void()> caller_type;
|
70
|
+
#endif
|
71
|
+
|
72
|
+
spawned_coroutine_thread(caller_type& caller)
|
73
|
+
: caller_(caller),
|
74
|
+
on_suspend_fn_(0),
|
75
|
+
on_suspend_arg_(0)
|
40
76
|
{
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
77
|
+
}
|
78
|
+
|
79
|
+
template <typename F>
|
80
|
+
static spawned_thread_base* spawn(BOOST_ASIO_MOVE_ARG(F) f,
|
81
|
+
const boost::coroutines::attributes& attributes,
|
82
|
+
cancellation_slot parent_cancel_slot = cancellation_slot(),
|
83
|
+
cancellation_state cancel_state = cancellation_state())
|
84
|
+
{
|
85
|
+
spawned_coroutine_thread* spawned_thread = 0;
|
86
|
+
callee_type callee(entry_point<typename decay<F>::type>(
|
87
|
+
BOOST_ASIO_MOVE_CAST(F)(f), &spawned_thread), attributes);
|
88
|
+
spawned_thread->callee_.swap(callee);
|
89
|
+
spawned_thread->parent_cancellation_slot_ = parent_cancel_slot;
|
90
|
+
spawned_thread->cancellation_state_ = cancel_state;
|
91
|
+
return spawned_thread;
|
92
|
+
}
|
93
|
+
|
94
|
+
template <typename F>
|
95
|
+
static spawned_thread_base* spawn(BOOST_ASIO_MOVE_ARG(F) f,
|
96
|
+
cancellation_slot parent_cancel_slot = cancellation_slot(),
|
97
|
+
cancellation_state cancel_state = cancellation_state())
|
98
|
+
{
|
99
|
+
return spawn(BOOST_ASIO_MOVE_CAST(F)(f), boost::coroutines::attributes(),
|
100
|
+
parent_cancel_slot, cancel_state);
|
101
|
+
}
|
102
|
+
|
103
|
+
void resume()
|
104
|
+
{
|
105
|
+
callee_();
|
106
|
+
if (on_suspend_fn_)
|
49
107
|
{
|
108
|
+
void (*fn)(void*) = on_suspend_fn_;
|
109
|
+
void* arg = on_suspend_arg_;
|
110
|
+
on_suspend_fn_ = 0;
|
111
|
+
fn(arg);
|
50
112
|
}
|
113
|
+
}
|
114
|
+
|
115
|
+
void suspend_with(void (*fn)(void*), void* arg)
|
116
|
+
{
|
117
|
+
if (throw_if_cancelled_)
|
118
|
+
if (!!cancellation_state_.cancelled())
|
119
|
+
throw_error(boost::asio::error::operation_aborted, "yield");
|
120
|
+
has_context_switched_ = true;
|
121
|
+
on_suspend_fn_ = fn;
|
122
|
+
on_suspend_arg_ = arg;
|
123
|
+
caller_();
|
124
|
+
}
|
125
|
+
|
126
|
+
void destroy()
|
127
|
+
{
|
128
|
+
callee_type callee;
|
129
|
+
callee.swap(callee_);
|
130
|
+
if (terminal_)
|
131
|
+
callee();
|
132
|
+
}
|
51
133
|
|
52
|
-
|
134
|
+
private:
|
135
|
+
template <typename Function>
|
136
|
+
class entry_point
|
137
|
+
{
|
138
|
+
public:
|
139
|
+
template <typename F>
|
140
|
+
entry_point(BOOST_ASIO_MOVE_ARG(F) f,
|
141
|
+
spawned_coroutine_thread** spawned_thread_out)
|
142
|
+
: function_(BOOST_ASIO_MOVE_CAST(F)(f)),
|
143
|
+
spawned_thread_out_(spawned_thread_out)
|
53
144
|
{
|
54
|
-
*ec_ = boost::system::error_code();
|
55
|
-
*value_ = BOOST_ASIO_MOVE_CAST(T)(value);
|
56
|
-
if (--*ready_ == 0)
|
57
|
-
(*coro_)();
|
58
145
|
}
|
59
146
|
|
60
|
-
void operator()(
|
147
|
+
void operator()(caller_type& caller)
|
61
148
|
{
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
149
|
+
Function function(BOOST_ASIO_MOVE_CAST(Function)(function_));
|
150
|
+
spawned_coroutine_thread spawned_thread(caller);
|
151
|
+
*spawned_thread_out_ = &spawned_thread;
|
152
|
+
spawned_thread_out_ = 0;
|
153
|
+
spawned_thread.suspend();
|
154
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
155
|
+
try
|
156
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
157
|
+
{
|
158
|
+
function(&spawned_thread);
|
159
|
+
spawned_thread.terminal_ = true;
|
160
|
+
spawned_thread.suspend();
|
161
|
+
}
|
162
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
163
|
+
catch (const boost::coroutines::detail::forced_unwind&)
|
164
|
+
{
|
165
|
+
throw;
|
166
|
+
}
|
167
|
+
catch (...)
|
168
|
+
{
|
169
|
+
exception_ptr ex = current_exception();
|
170
|
+
spawned_thread.terminal_ = true;
|
171
|
+
spawned_thread.suspend_with(spawned_thread_rethrow, &ex);
|
172
|
+
}
|
173
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
66
174
|
}
|
67
175
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
Handler handler_;
|
72
|
-
atomic_count* ready_;
|
73
|
-
boost::system::error_code* ec_;
|
74
|
-
T* value_;
|
176
|
+
private:
|
177
|
+
Function function_;
|
178
|
+
spawned_coroutine_thread** spawned_thread_out_;
|
75
179
|
};
|
76
180
|
|
77
|
-
|
78
|
-
|
181
|
+
caller_type& caller_;
|
182
|
+
callee_type callee_;
|
183
|
+
void (*on_suspend_fn_)(void*);
|
184
|
+
void* on_suspend_arg_;
|
185
|
+
};
|
186
|
+
|
187
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
188
|
+
|
189
|
+
#if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
190
|
+
|
191
|
+
// Spawned thread implementation using Boost.Context's fiber.
|
192
|
+
class spawned_fiber_thread : public spawned_thread_base
|
193
|
+
{
|
194
|
+
public:
|
195
|
+
typedef boost::context::fiber fiber_type;
|
196
|
+
|
197
|
+
spawned_fiber_thread(BOOST_ASIO_MOVE_ARG(fiber_type) caller)
|
198
|
+
: caller_(BOOST_ASIO_MOVE_CAST(fiber_type)(caller)),
|
199
|
+
on_suspend_fn_(0),
|
200
|
+
on_suspend_arg_(0)
|
79
201
|
{
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
202
|
+
}
|
203
|
+
|
204
|
+
template <typename StackAllocator, typename F>
|
205
|
+
static spawned_thread_base* spawn(allocator_arg_t,
|
206
|
+
BOOST_ASIO_MOVE_ARG(StackAllocator) stack_allocator,
|
207
|
+
BOOST_ASIO_MOVE_ARG(F) f,
|
208
|
+
cancellation_slot parent_cancel_slot = cancellation_slot(),
|
209
|
+
cancellation_state cancel_state = cancellation_state())
|
210
|
+
{
|
211
|
+
spawned_fiber_thread* spawned_thread = 0;
|
212
|
+
fiber_type callee(allocator_arg_t(),
|
213
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
214
|
+
entry_point<typename decay<F>::type>(
|
215
|
+
BOOST_ASIO_MOVE_CAST(F)(f), &spawned_thread));
|
216
|
+
callee = fiber_type(BOOST_ASIO_MOVE_CAST(fiber_type)(callee)).resume();
|
217
|
+
spawned_thread->callee_ = BOOST_ASIO_MOVE_CAST(fiber_type)(callee);
|
218
|
+
spawned_thread->parent_cancellation_slot_ = parent_cancel_slot;
|
219
|
+
spawned_thread->cancellation_state_ = cancel_state;
|
220
|
+
return spawned_thread;
|
221
|
+
}
|
222
|
+
|
223
|
+
template <typename F>
|
224
|
+
static spawned_thread_base* spawn(BOOST_ASIO_MOVE_ARG(F) f,
|
225
|
+
cancellation_slot parent_cancel_slot = cancellation_slot(),
|
226
|
+
cancellation_state cancel_state = cancellation_state())
|
227
|
+
{
|
228
|
+
return spawn(allocator_arg_t(), boost::context::fixedsize_stack(),
|
229
|
+
BOOST_ASIO_MOVE_CAST(F)(f), parent_cancel_slot, cancel_state);
|
230
|
+
}
|
231
|
+
|
232
|
+
void resume()
|
233
|
+
{
|
234
|
+
callee_ = fiber_type(BOOST_ASIO_MOVE_CAST(fiber_type)(callee_)).resume();
|
235
|
+
if (on_suspend_fn_)
|
87
236
|
{
|
237
|
+
void (*fn)(void*) = on_suspend_fn_;
|
238
|
+
void* arg = on_suspend_arg_;
|
239
|
+
on_suspend_fn_ = 0;
|
240
|
+
fn(arg);
|
88
241
|
}
|
242
|
+
}
|
89
243
|
|
90
|
-
|
244
|
+
void suspend_with(void (*fn)(void*), void* arg)
|
245
|
+
{
|
246
|
+
if (throw_if_cancelled_)
|
247
|
+
if (!!cancellation_state_.cancelled())
|
248
|
+
throw_error(boost::asio::error::operation_aborted, "yield");
|
249
|
+
has_context_switched_ = true;
|
250
|
+
on_suspend_fn_ = fn;
|
251
|
+
on_suspend_arg_ = arg;
|
252
|
+
caller_ = fiber_type(BOOST_ASIO_MOVE_CAST(fiber_type)(caller_)).resume();
|
253
|
+
}
|
254
|
+
|
255
|
+
void destroy()
|
256
|
+
{
|
257
|
+
fiber_type callee = BOOST_ASIO_MOVE_CAST(fiber_type)(callee_);
|
258
|
+
if (terminal_)
|
259
|
+
fiber_type(BOOST_ASIO_MOVE_CAST(fiber_type)(callee)).resume();
|
260
|
+
}
|
261
|
+
|
262
|
+
private:
|
263
|
+
template <typename Function>
|
264
|
+
class entry_point
|
265
|
+
{
|
266
|
+
public:
|
267
|
+
template <typename F>
|
268
|
+
entry_point(BOOST_ASIO_MOVE_ARG(F) f,
|
269
|
+
spawned_fiber_thread** spawned_thread_out)
|
270
|
+
: function_(BOOST_ASIO_MOVE_CAST(F)(f)),
|
271
|
+
spawned_thread_out_(spawned_thread_out)
|
91
272
|
{
|
92
|
-
*ec_ = boost::system::error_code();
|
93
|
-
if (--*ready_ == 0)
|
94
|
-
(*coro_)();
|
95
273
|
}
|
96
274
|
|
97
|
-
|
275
|
+
fiber_type operator()(BOOST_ASIO_MOVE_ARG(fiber_type) caller)
|
98
276
|
{
|
99
|
-
|
100
|
-
|
101
|
-
|
277
|
+
Function function(BOOST_ASIO_MOVE_CAST(Function)(function_));
|
278
|
+
spawned_fiber_thread spawned_thread(
|
279
|
+
BOOST_ASIO_MOVE_CAST(fiber_type)(caller));
|
280
|
+
*spawned_thread_out_ = &spawned_thread;
|
281
|
+
spawned_thread_out_ = 0;
|
282
|
+
spawned_thread.suspend();
|
283
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
284
|
+
try
|
285
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
286
|
+
{
|
287
|
+
function(&spawned_thread);
|
288
|
+
spawned_thread.terminal_ = true;
|
289
|
+
spawned_thread.suspend();
|
290
|
+
}
|
291
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
292
|
+
catch (const boost::context::detail::forced_unwind&)
|
293
|
+
{
|
294
|
+
throw;
|
295
|
+
}
|
296
|
+
catch (...)
|
297
|
+
{
|
298
|
+
exception_ptr ex = current_exception();
|
299
|
+
spawned_thread.terminal_ = true;
|
300
|
+
spawned_thread.suspend_with(spawned_thread_rethrow, &ex);
|
301
|
+
}
|
302
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
303
|
+
return BOOST_ASIO_MOVE_CAST(fiber_type)(spawned_thread.caller_);
|
102
304
|
}
|
103
305
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
Handler handler_;
|
108
|
-
atomic_count* ready_;
|
109
|
-
boost::system::error_code* ec_;
|
306
|
+
private:
|
307
|
+
Function function_;
|
308
|
+
spawned_fiber_thread** spawned_thread_out_;
|
110
309
|
};
|
111
310
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
311
|
+
fiber_type caller_;
|
312
|
+
fiber_type callee_;
|
313
|
+
void (*on_suspend_fn_)(void*);
|
314
|
+
void* on_suspend_arg_;
|
315
|
+
};
|
316
|
+
|
317
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
318
|
+
|
319
|
+
#if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
320
|
+
typedef spawned_fiber_thread default_spawned_thread_type;
|
321
|
+
#elif defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
322
|
+
typedef spawned_coroutine_thread default_spawned_thread_type;
|
323
|
+
#else
|
324
|
+
# error No spawn() implementation available
|
325
|
+
#endif
|
326
|
+
|
327
|
+
// Helper class to perform the initial resume on the correct executor.
|
328
|
+
class spawned_thread_resumer
|
329
|
+
{
|
330
|
+
public:
|
331
|
+
explicit spawned_thread_resumer(spawned_thread_base* spawned_thread)
|
332
|
+
: spawned_thread_(spawned_thread)
|
116
333
|
{
|
117
|
-
#if defined(
|
118
|
-
|
119
|
-
|
120
|
-
#
|
121
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
122
|
-
size, this_handler->handler_);
|
123
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
334
|
+
#if !defined(BOOST_ASIO_HAS_MOVE)
|
335
|
+
spawned_thread->detach();
|
336
|
+
spawned_thread->attach(&spawned_thread_);
|
337
|
+
#endif // !defined(BOOST_ASIO_HAS_MOVE)
|
124
338
|
}
|
125
339
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
340
|
+
#if defined(BOOST_ASIO_HAS_MOVE)
|
341
|
+
|
342
|
+
spawned_thread_resumer(spawned_thread_resumer&& other) BOOST_ASIO_NOEXCEPT
|
343
|
+
: spawned_thread_(other.spawned_thread_)
|
130
344
|
{
|
131
|
-
|
132
|
-
pointer, size, this_handler->handler_);
|
133
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
134
|
-
return asio_handler_deallocate_is_no_longer_used();
|
135
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
345
|
+
other.spawned_thread_ = 0;
|
136
346
|
}
|
137
347
|
|
138
|
-
|
139
|
-
|
348
|
+
#else // defined(BOOST_ASIO_HAS_MOVE)
|
349
|
+
|
350
|
+
spawned_thread_resumer(
|
351
|
+
const spawned_thread_resumer& other) BOOST_ASIO_NOEXCEPT
|
352
|
+
: spawned_thread_(other.spawned_thread_)
|
140
353
|
{
|
141
|
-
|
354
|
+
spawned_thread_->detach();
|
355
|
+
spawned_thread_->attach(&spawned_thread_);
|
142
356
|
}
|
143
357
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
coro_handler<Handler, T>* this_handler)
|
358
|
+
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
359
|
+
|
360
|
+
~spawned_thread_resumer()
|
148
361
|
{
|
149
|
-
|
150
|
-
|
151
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
152
|
-
return asio_handler_invoke_is_no_longer_used();
|
153
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
362
|
+
if (spawned_thread_)
|
363
|
+
spawned_thread_->destroy();
|
154
364
|
}
|
155
365
|
|
156
|
-
|
157
|
-
inline asio_handler_invoke_is_deprecated
|
158
|
-
asio_handler_invoke(const Function& function,
|
159
|
-
coro_handler<Handler, T>* this_handler)
|
366
|
+
void operator()()
|
160
367
|
{
|
161
|
-
|
162
|
-
|
163
|
-
#
|
164
|
-
|
165
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
368
|
+
#if defined(BOOST_ASIO_HAS_MOVE)
|
369
|
+
spawned_thread_->attach(&spawned_thread_);
|
370
|
+
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
371
|
+
spawned_thread_->resume();
|
166
372
|
}
|
167
373
|
|
168
|
-
|
169
|
-
|
374
|
+
private:
|
375
|
+
spawned_thread_base* spawned_thread_;
|
376
|
+
};
|
377
|
+
|
378
|
+
// Helper class to ensure spawned threads are destroyed on the correct executor.
|
379
|
+
class spawned_thread_destroyer
|
380
|
+
{
|
381
|
+
public:
|
382
|
+
explicit spawned_thread_destroyer(spawned_thread_base* spawned_thread)
|
383
|
+
: spawned_thread_(spawned_thread)
|
170
384
|
{
|
171
|
-
|
172
|
-
|
173
|
-
|
385
|
+
spawned_thread->detach();
|
386
|
+
#if !defined(BOOST_ASIO_HAS_MOVE)
|
387
|
+
spawned_thread->attach(&spawned_thread_);
|
388
|
+
#endif // !defined(BOOST_ASIO_HAS_MOVE)
|
389
|
+
}
|
174
390
|
|
175
|
-
|
176
|
-
: handler_(h),
|
177
|
-
ca_(h.ca_),
|
178
|
-
ready_(2)
|
179
|
-
{
|
180
|
-
h.ready_ = &ready_;
|
181
|
-
out_ec_ = h.ec_;
|
182
|
-
if (!out_ec_) h.ec_ = &ec_;
|
183
|
-
h.value_ = &value_;
|
184
|
-
}
|
391
|
+
#if defined(BOOST_ASIO_HAS_MOVE)
|
185
392
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
393
|
+
spawned_thread_destroyer(spawned_thread_destroyer&& other) BOOST_ASIO_NOEXCEPT
|
394
|
+
: spawned_thread_(other.spawned_thread_)
|
395
|
+
{
|
396
|
+
other.spawned_thread_ = 0;
|
397
|
+
}
|
190
398
|
|
191
|
-
|
192
|
-
ca_();
|
193
|
-
if (!out_ec_ && ec_) throw boost::system::system_error(ec_);
|
194
|
-
return BOOST_ASIO_MOVE_CAST(return_type)(value_);
|
195
|
-
}
|
399
|
+
#else // defined(BOOST_ASIO_HAS_MOVE)
|
196
400
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
};
|
401
|
+
spawned_thread_destroyer(
|
402
|
+
const spawned_thread_destroyer& other) BOOST_ASIO_NOEXCEPT
|
403
|
+
: spawned_thread_(other.spawned_thread_)
|
404
|
+
{
|
405
|
+
spawned_thread_->detach();
|
406
|
+
spawned_thread_->attach(&spawned_thread_);
|
407
|
+
}
|
205
408
|
|
206
|
-
|
207
|
-
|
409
|
+
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
410
|
+
|
411
|
+
~spawned_thread_destroyer()
|
208
412
|
{
|
209
|
-
|
210
|
-
|
211
|
-
|
413
|
+
if (spawned_thread_)
|
414
|
+
spawned_thread_->destroy();
|
415
|
+
}
|
212
416
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
ready_(2)
|
417
|
+
void operator()()
|
418
|
+
{
|
419
|
+
if (spawned_thread_)
|
217
420
|
{
|
218
|
-
|
219
|
-
|
220
|
-
if (!out_ec_) h.ec_ = &ec_;
|
421
|
+
spawned_thread_->destroy();
|
422
|
+
spawned_thread_ = 0;
|
221
423
|
}
|
424
|
+
}
|
222
425
|
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
handler_.coro_.reset();
|
426
|
+
private:
|
427
|
+
spawned_thread_base* spawned_thread_;
|
428
|
+
};
|
227
429
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
430
|
+
// Base class for all completion handlers associated with a spawned thread.
|
431
|
+
template <typename Executor>
|
432
|
+
class spawn_handler_base
|
433
|
+
{
|
434
|
+
public:
|
435
|
+
typedef Executor executor_type;
|
436
|
+
typedef cancellation_slot cancellation_slot_type;
|
232
437
|
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
438
|
+
spawn_handler_base(const basic_yield_context<Executor>& yield)
|
439
|
+
: yield_(yield),
|
440
|
+
spawned_thread_(yield.spawned_thread_)
|
441
|
+
{
|
442
|
+
spawned_thread_->detach();
|
443
|
+
#if !defined(BOOST_ASIO_HAS_MOVE)
|
444
|
+
spawned_thread_->attach(&spawned_thread_);
|
445
|
+
#endif // !defined(BOOST_ASIO_HAS_MOVE)
|
446
|
+
}
|
240
447
|
|
241
|
-
|
448
|
+
#if defined(BOOST_ASIO_HAS_MOVE)
|
449
|
+
|
450
|
+
spawn_handler_base(spawn_handler_base&& other) BOOST_ASIO_NOEXCEPT
|
451
|
+
: yield_(other.yield_),
|
452
|
+
spawned_thread_(other.spawned_thread_)
|
453
|
+
|
454
|
+
{
|
455
|
+
other.spawned_thread_ = 0;
|
456
|
+
}
|
457
|
+
|
458
|
+
#else // defined(BOOST_ASIO_HAS_MOVE)
|
459
|
+
|
460
|
+
spawn_handler_base(const spawn_handler_base& other) BOOST_ASIO_NOEXCEPT
|
461
|
+
: yield_(other.yield_),
|
462
|
+
spawned_thread_(other.spawned_thread_)
|
463
|
+
{
|
464
|
+
spawned_thread_->detach();
|
465
|
+
spawned_thread_->attach(&spawned_thread_);
|
466
|
+
}
|
467
|
+
|
468
|
+
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
469
|
+
|
470
|
+
~spawn_handler_base()
|
471
|
+
{
|
472
|
+
if (spawned_thread_)
|
473
|
+
(post)(yield_.executor_, spawned_thread_destroyer(spawned_thread_));
|
474
|
+
}
|
475
|
+
|
476
|
+
executor_type get_executor() const BOOST_ASIO_NOEXCEPT
|
477
|
+
{
|
478
|
+
return yield_.executor_;
|
479
|
+
}
|
480
|
+
|
481
|
+
cancellation_slot_type get_cancellation_slot() const BOOST_ASIO_NOEXCEPT
|
482
|
+
{
|
483
|
+
return spawned_thread_->get_cancellation_slot();
|
484
|
+
}
|
485
|
+
|
486
|
+
void resume()
|
487
|
+
{
|
488
|
+
spawned_thread_resumer resumer(spawned_thread_);
|
489
|
+
spawned_thread_ = 0;
|
490
|
+
resumer();
|
491
|
+
}
|
242
492
|
|
243
|
-
|
493
|
+
protected:
|
494
|
+
const basic_yield_context<Executor>& yield_;
|
495
|
+
spawned_thread_base* spawned_thread_;
|
496
|
+
};
|
497
|
+
|
498
|
+
// Completion handlers for when basic_yield_context is used as a token.
|
499
|
+
template <typename Executor, typename Signature>
|
500
|
+
class spawn_handler;
|
244
501
|
|
245
|
-
template <typename
|
246
|
-
class
|
247
|
-
: public
|
502
|
+
template <typename Executor, typename R>
|
503
|
+
class spawn_handler<Executor, R()>
|
504
|
+
: public spawn_handler_base<Executor>
|
248
505
|
{
|
249
506
|
public:
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
507
|
+
typedef void return_type;
|
508
|
+
|
509
|
+
struct result_type {};
|
510
|
+
|
511
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type&)
|
512
|
+
: spawn_handler_base<Executor>(yield)
|
513
|
+
{
|
514
|
+
}
|
515
|
+
|
516
|
+
void operator()()
|
517
|
+
{
|
518
|
+
this->resume();
|
519
|
+
}
|
520
|
+
|
521
|
+
static return_type on_resume(result_type&)
|
254
522
|
{
|
255
523
|
}
|
256
524
|
};
|
257
525
|
|
258
|
-
template <typename
|
259
|
-
class
|
260
|
-
: public
|
526
|
+
template <typename Executor, typename R>
|
527
|
+
class spawn_handler<Executor, R(boost::system::error_code)>
|
528
|
+
: public spawn_handler_base<Executor>
|
261
529
|
{
|
262
530
|
public:
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
531
|
+
typedef void return_type;
|
532
|
+
typedef boost::system::error_code* result_type;
|
533
|
+
|
534
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
535
|
+
: spawn_handler_base<Executor>(yield),
|
536
|
+
result_(result)
|
537
|
+
{
|
538
|
+
}
|
539
|
+
|
540
|
+
void operator()(boost::system::error_code ec)
|
541
|
+
{
|
542
|
+
if (this->yield_.ec_)
|
543
|
+
{
|
544
|
+
*this->yield_.ec_ = ec;
|
545
|
+
result_ = 0;
|
546
|
+
}
|
547
|
+
else
|
548
|
+
result_ = &ec;
|
549
|
+
this->resume();
|
550
|
+
}
|
551
|
+
|
552
|
+
static return_type on_resume(result_type& result)
|
267
553
|
{
|
554
|
+
if (result)
|
555
|
+
throw_error(*result);
|
268
556
|
}
|
557
|
+
|
558
|
+
private:
|
559
|
+
result_type& result_;
|
269
560
|
};
|
270
561
|
|
271
|
-
template <typename
|
272
|
-
class
|
273
|
-
|
274
|
-
: public detail::coro_async_result<Handler, void>
|
562
|
+
template <typename Executor, typename R>
|
563
|
+
class spawn_handler<Executor, R(exception_ptr)>
|
564
|
+
: public spawn_handler_base<Executor>
|
275
565
|
{
|
276
566
|
public:
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
567
|
+
typedef void return_type;
|
568
|
+
typedef exception_ptr* result_type;
|
569
|
+
|
570
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
571
|
+
: spawn_handler_base<Executor>(yield),
|
572
|
+
result_(result)
|
573
|
+
{
|
574
|
+
}
|
575
|
+
|
576
|
+
void operator()(exception_ptr ex)
|
281
577
|
{
|
578
|
+
result_ = &ex;
|
579
|
+
this->resume();
|
282
580
|
}
|
581
|
+
|
582
|
+
static return_type on_resume(result_type& result)
|
583
|
+
{
|
584
|
+
if (result)
|
585
|
+
rethrow_exception(*result);
|
586
|
+
}
|
587
|
+
|
588
|
+
private:
|
589
|
+
result_type& result_;
|
283
590
|
};
|
284
591
|
|
285
|
-
template <typename
|
286
|
-
class
|
287
|
-
|
288
|
-
: public detail::coro_async_result<Handler, typename decay<Arg2>::type>
|
592
|
+
template <typename Executor, typename R, typename T>
|
593
|
+
class spawn_handler<Executor, R(T)>
|
594
|
+
: public spawn_handler_base<Executor>
|
289
595
|
{
|
290
596
|
public:
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
597
|
+
typedef T return_type;
|
598
|
+
typedef return_type* result_type;
|
599
|
+
|
600
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
601
|
+
: spawn_handler_base<Executor>(yield),
|
602
|
+
result_(result)
|
603
|
+
{
|
604
|
+
}
|
605
|
+
|
606
|
+
void operator()(T value)
|
607
|
+
{
|
608
|
+
result_ = &value;
|
609
|
+
this->resume();
|
610
|
+
}
|
611
|
+
|
612
|
+
static return_type on_resume(result_type& result)
|
295
613
|
{
|
614
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result);
|
296
615
|
}
|
616
|
+
|
617
|
+
private:
|
618
|
+
result_type& result_;
|
297
619
|
};
|
298
620
|
|
299
|
-
template <typename
|
300
|
-
|
621
|
+
template <typename Executor, typename R, typename T>
|
622
|
+
class spawn_handler<Executor, R(boost::system::error_code, T)>
|
623
|
+
: public spawn_handler_base<Executor>
|
301
624
|
{
|
302
|
-
|
625
|
+
public:
|
626
|
+
typedef T return_type;
|
627
|
+
|
628
|
+
struct result_type
|
629
|
+
{
|
630
|
+
boost::system::error_code* ec_;
|
631
|
+
return_type* value_;
|
632
|
+
};
|
633
|
+
|
634
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
635
|
+
: spawn_handler_base<Executor>(yield),
|
636
|
+
result_(result)
|
637
|
+
{
|
638
|
+
}
|
639
|
+
|
640
|
+
void operator()(boost::system::error_code ec, T value)
|
641
|
+
{
|
642
|
+
if (this->yield_.ec_)
|
643
|
+
{
|
644
|
+
*this->yield_.ec_ = ec;
|
645
|
+
result_.ec_ = 0;
|
646
|
+
}
|
647
|
+
else
|
648
|
+
result_.ec_ = &ec;
|
649
|
+
result_.value_ = &value;
|
650
|
+
this->resume();
|
651
|
+
}
|
303
652
|
|
304
|
-
static
|
305
|
-
const Allocator& a = Allocator()) BOOST_ASIO_NOEXCEPT
|
653
|
+
static return_type on_resume(result_type& result)
|
306
654
|
{
|
307
|
-
|
655
|
+
if (result.ec_)
|
656
|
+
throw_error(*result.ec_);
|
657
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result.value_);
|
308
658
|
}
|
659
|
+
|
660
|
+
private:
|
661
|
+
result_type& result_;
|
309
662
|
};
|
310
663
|
|
311
|
-
template <typename
|
312
|
-
|
664
|
+
template <typename Executor, typename R, typename T>
|
665
|
+
class spawn_handler<Executor, R(exception_ptr, T)>
|
666
|
+
: public spawn_handler_base<Executor>
|
313
667
|
{
|
314
|
-
|
668
|
+
public:
|
669
|
+
typedef T return_type;
|
670
|
+
|
671
|
+
struct result_type
|
672
|
+
{
|
673
|
+
exception_ptr* ex_;
|
674
|
+
return_type* value_;
|
675
|
+
};
|
676
|
+
|
677
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
678
|
+
: spawn_handler_base<Executor>(yield),
|
679
|
+
result_(result)
|
680
|
+
{
|
681
|
+
}
|
682
|
+
|
683
|
+
void operator()(exception_ptr ex, T value)
|
684
|
+
{
|
685
|
+
result_.ex_ = &ex;
|
686
|
+
result_.value_ = &value;
|
687
|
+
this->resume();
|
688
|
+
}
|
315
689
|
|
316
|
-
static
|
317
|
-
const Executor& ex = Executor()) BOOST_ASIO_NOEXCEPT
|
690
|
+
static return_type on_resume(result_type& result)
|
318
691
|
{
|
319
|
-
|
692
|
+
if (result.ex_)
|
693
|
+
rethrow_exception(*result.ex_);
|
694
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result.value_);
|
320
695
|
}
|
696
|
+
|
697
|
+
private:
|
698
|
+
result_type& result_;
|
321
699
|
};
|
322
700
|
|
323
|
-
|
701
|
+
#if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES) \
|
702
|
+
&& defined(BOOST_ASIO_HAS_STD_TUPLE)
|
703
|
+
|
704
|
+
template <typename Executor, typename R, typename... Ts>
|
705
|
+
class spawn_handler<Executor, R(Ts...)>
|
706
|
+
: public spawn_handler_base<Executor>
|
707
|
+
{
|
708
|
+
public:
|
709
|
+
typedef std::tuple<Ts...> return_type;
|
710
|
+
|
711
|
+
typedef return_type* result_type;
|
712
|
+
|
713
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
714
|
+
: spawn_handler_base<Executor>(yield),
|
715
|
+
result_(result)
|
716
|
+
{
|
717
|
+
}
|
718
|
+
|
719
|
+
template <typename... Args>
|
720
|
+
void operator()(BOOST_ASIO_MOVE_ARG(Args)... args)
|
721
|
+
{
|
722
|
+
return_type value(BOOST_ASIO_MOVE_CAST(Args)(args)...);
|
723
|
+
result_ = &value;
|
724
|
+
this->resume();
|
725
|
+
}
|
324
726
|
|
325
|
-
|
326
|
-
struct spawn_data : private noncopyable
|
727
|
+
static return_type on_resume(result_type& result)
|
327
728
|
{
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
729
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result);
|
730
|
+
}
|
731
|
+
|
732
|
+
private:
|
733
|
+
result_type& result_;
|
734
|
+
};
|
735
|
+
|
736
|
+
template <typename Executor, typename R, typename... Ts>
|
737
|
+
class spawn_handler<Executor, R(boost::system::error_code, Ts...)>
|
738
|
+
: public spawn_handler_base<Executor>
|
739
|
+
{
|
740
|
+
public:
|
741
|
+
typedef std::tuple<Ts...> return_type;
|
742
|
+
|
743
|
+
struct result_type
|
744
|
+
{
|
745
|
+
boost::system::error_code* ec_;
|
746
|
+
return_type* value_;
|
747
|
+
};
|
748
|
+
|
749
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
750
|
+
: spawn_handler_base<Executor>(yield),
|
751
|
+
result_(result)
|
752
|
+
{
|
753
|
+
}
|
754
|
+
|
755
|
+
template <typename... Args>
|
756
|
+
void operator()(boost::system::error_code ec,
|
757
|
+
BOOST_ASIO_MOVE_ARG(Args)... args)
|
758
|
+
{
|
759
|
+
return_type value(BOOST_ASIO_MOVE_CAST(Args)(args)...);
|
760
|
+
if (this->yield_.ec_)
|
334
761
|
{
|
762
|
+
*this->yield_.ec_ = ec;
|
763
|
+
result_.ec_ = 0;
|
335
764
|
}
|
765
|
+
else
|
766
|
+
result_.ec_ = &ec;
|
767
|
+
result_.value_ = &value;
|
768
|
+
this->resume();
|
769
|
+
}
|
336
770
|
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
771
|
+
static return_type on_resume(result_type& result)
|
772
|
+
{
|
773
|
+
if (result.ec_)
|
774
|
+
throw_error(*result.ec_);
|
775
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result.value_);
|
776
|
+
}
|
777
|
+
|
778
|
+
private:
|
779
|
+
result_type& result_;
|
780
|
+
};
|
781
|
+
|
782
|
+
template <typename Executor, typename R, typename... Ts>
|
783
|
+
class spawn_handler<Executor, R(exception_ptr, Ts...)>
|
784
|
+
: public spawn_handler_base<Executor>
|
785
|
+
{
|
786
|
+
public:
|
787
|
+
typedef std::tuple<Ts...> return_type;
|
788
|
+
|
789
|
+
struct result_type
|
790
|
+
{
|
791
|
+
exception_ptr* ex_;
|
792
|
+
return_type* value_;
|
341
793
|
};
|
342
794
|
|
343
|
-
|
344
|
-
|
795
|
+
spawn_handler(const basic_yield_context<Executor>& yield, result_type& result)
|
796
|
+
: spawn_handler_base<Executor>(yield),
|
797
|
+
result_(result)
|
798
|
+
{
|
799
|
+
}
|
800
|
+
|
801
|
+
template <typename... Args>
|
802
|
+
void operator()(exception_ptr ex, BOOST_ASIO_MOVE_ARG(Args)... args)
|
803
|
+
{
|
804
|
+
return_type value(BOOST_ASIO_MOVE_CAST(Args)(args)...);
|
805
|
+
result_.ex_ = &ex;
|
806
|
+
result_.value_ = &value;
|
807
|
+
this->resume();
|
808
|
+
}
|
809
|
+
|
810
|
+
static return_type on_resume(result_type& result)
|
811
|
+
{
|
812
|
+
if (result.ex_)
|
813
|
+
rethrow_exception(*result.ex_);
|
814
|
+
return BOOST_ASIO_MOVE_CAST(return_type)(*result.value_);
|
815
|
+
}
|
816
|
+
|
817
|
+
private:
|
818
|
+
result_type& result_;
|
819
|
+
};
|
820
|
+
|
821
|
+
#endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
|
822
|
+
// && defined(BOOST_ASIO_HAS_STD_TUPLE)
|
823
|
+
|
824
|
+
template <typename Executor, typename Signature>
|
825
|
+
inline bool asio_handler_is_continuation(spawn_handler<Executor, Signature>*)
|
826
|
+
{
|
827
|
+
return true;
|
828
|
+
}
|
829
|
+
|
830
|
+
} // namespace detail
|
831
|
+
|
832
|
+
template <typename Executor, typename Signature>
|
833
|
+
class async_result<basic_yield_context<Executor>, Signature>
|
834
|
+
{
|
835
|
+
public:
|
836
|
+
typedef typename detail::spawn_handler<Executor, Signature> handler_type;
|
837
|
+
typedef typename handler_type::return_type return_type;
|
838
|
+
|
839
|
+
#if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
|
840
|
+
# if defined(BOOST_ASIO_HAS_VARIADIC_LAMBDA_CAPTURES)
|
841
|
+
|
842
|
+
template <typename Initiation, typename... InitArgs>
|
843
|
+
static return_type initiate(BOOST_ASIO_MOVE_ARG(Initiation) init,
|
844
|
+
const basic_yield_context<Executor>& yield,
|
845
|
+
BOOST_ASIO_MOVE_ARG(InitArgs)... init_args)
|
345
846
|
{
|
346
|
-
|
847
|
+
typename handler_type::result_type result
|
848
|
+
= typename handler_type::result_type();
|
849
|
+
|
850
|
+
yield.spawned_thread_->suspend_with(
|
851
|
+
[&]()
|
852
|
+
{
|
853
|
+
BOOST_ASIO_MOVE_CAST(Initiation)(init)(
|
854
|
+
handler_type(yield, result),
|
855
|
+
BOOST_ASIO_MOVE_CAST(InitArgs)(init_args)...);
|
856
|
+
});
|
857
|
+
|
858
|
+
return handler_type::on_resume(result);
|
859
|
+
}
|
860
|
+
|
861
|
+
# else // defined(BOOST_ASIO_HAS_VARIADIC_LAMBDA_CAPTURES)
|
862
|
+
|
863
|
+
template <typename Initiation, typename... InitArgs>
|
864
|
+
struct suspend_with_helper
|
865
|
+
{
|
866
|
+
typename handler_type::result_type& result_;
|
867
|
+
BOOST_ASIO_MOVE_ARG(Initiation) init_;
|
868
|
+
const basic_yield_context<Executor>& yield_;
|
869
|
+
std::tuple<BOOST_ASIO_MOVE_ARG(InitArgs)...> init_args_;
|
870
|
+
|
871
|
+
template <std::size_t... I>
|
872
|
+
void do_invoke(detail::index_sequence<I...>)
|
347
873
|
{
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
#endif // !defined(BOOST_COROUTINES_UNIDIRECT) && !defined(BOOST_COROUTINES_V2)
|
352
|
-
const basic_yield_context<Handler> yield(
|
353
|
-
data->coro_, ca, data->handler_);
|
354
|
-
|
355
|
-
(data->function_)(yield);
|
356
|
-
if (data->call_handler_)
|
357
|
-
(data->handler_)();
|
874
|
+
BOOST_ASIO_MOVE_CAST(Initiation)(init_)(
|
875
|
+
handler_type(yield_, result_),
|
876
|
+
BOOST_ASIO_MOVE_CAST(InitArgs)(std::get<I>(init_args_))...);
|
358
877
|
}
|
359
878
|
|
360
|
-
|
879
|
+
void operator()()
|
880
|
+
{
|
881
|
+
this->do_invoke(detail::make_index_sequence<sizeof...(InitArgs)>());
|
882
|
+
}
|
361
883
|
};
|
362
884
|
|
363
|
-
template <typename
|
364
|
-
|
885
|
+
template <typename Initiation, typename... InitArgs>
|
886
|
+
static return_type initiate(BOOST_ASIO_MOVE_ARG(Initiation) init,
|
887
|
+
const basic_yield_context<Executor>& yield,
|
888
|
+
BOOST_ASIO_MOVE_ARG(InitArgs)... init_args)
|
889
|
+
{
|
890
|
+
typename handler_type::result_type result
|
891
|
+
= typename handler_type::result_type();
|
892
|
+
|
893
|
+
yield.spawned_thread_->suspend_with(
|
894
|
+
suspend_with_helper<Initiation, InitArgs...>{
|
895
|
+
result, BOOST_ASIO_MOVE_CAST(Initiation)(init), yield,
|
896
|
+
std::tuple<BOOST_ASIO_MOVE_ARG(InitArgs)...>(
|
897
|
+
BOOST_ASIO_MOVE_CAST(InitArgs)(init_args)...)});
|
898
|
+
|
899
|
+
return handler_type::on_resume(result);
|
900
|
+
}
|
901
|
+
|
902
|
+
# endif // defined(BOOST_ASIO_HAS_VARIADIC_LAMBDA_CAPTURES)
|
903
|
+
#else // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
|
904
|
+
|
905
|
+
template <typename Initiation>
|
906
|
+
static return_type initiate(Initiation init,
|
907
|
+
const basic_yield_context<Executor>& yield)
|
365
908
|
{
|
366
|
-
|
909
|
+
typename handler_type::result_type result
|
910
|
+
= typename handler_type::result_type();
|
367
911
|
|
368
|
-
|
912
|
+
struct on_suspend
|
369
913
|
{
|
370
|
-
|
371
|
-
|
914
|
+
Initiation& init_;
|
915
|
+
const basic_yield_context<Executor>& yield_;
|
916
|
+
typename handler_type::result_type& result_;
|
917
|
+
|
918
|
+
void do_call()
|
919
|
+
{
|
920
|
+
BOOST_ASIO_MOVE_CAST(Initiation)(init_)(
|
921
|
+
handler_type(yield_, result_));
|
922
|
+
}
|
923
|
+
|
924
|
+
static void call(void* arg)
|
925
|
+
{
|
926
|
+
static_cast<on_suspend*>(arg)->do_call();
|
927
|
+
}
|
928
|
+
} o = { init, yield, result };
|
929
|
+
|
930
|
+
yield.spawned_thread_->suspend_with(&on_suspend::call, &o);
|
931
|
+
|
932
|
+
return handler_type::on_resume(result);
|
933
|
+
}
|
934
|
+
|
935
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS(n) \
|
936
|
+
BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_##n
|
937
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_1 \
|
938
|
+
T1& x1;
|
939
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_2 \
|
940
|
+
T1& x1; T2& x2;
|
941
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_3 \
|
942
|
+
T1& x1; T2& x2; T3& x3;
|
943
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_4 \
|
944
|
+
T1& x1; T2& x2; T3& x3; T4& x4;
|
945
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_5 \
|
946
|
+
T1& x1; T2& x2; T3& x3; T4& x4; T5& x5;
|
947
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_6 \
|
948
|
+
T1& x1; T2& x2; T3& x3; T4& x4; T5& x5; T6& x6;
|
949
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_7 \
|
950
|
+
T1& x1; T2& x2; T3& x3; T4& x4; T5& x5; T6& x6; T7& x7;
|
951
|
+
#define BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_8 \
|
952
|
+
T1& x1; T2& x2; T3& x3; T4& x4; T5& x5; T6& x6; T7& x7; T8& x8;
|
953
|
+
|
954
|
+
#define BOOST_ASIO_PRIVATE_INITIATE_DEF(n) \
|
955
|
+
template <typename Initiation, BOOST_ASIO_VARIADIC_TPARAMS(n)> \
|
956
|
+
static return_type initiate(Initiation init, \
|
957
|
+
const basic_yield_context<Executor>& yield, \
|
958
|
+
BOOST_ASIO_VARIADIC_BYVAL_PARAMS(n)) \
|
959
|
+
{ \
|
960
|
+
typename handler_type::result_type result \
|
961
|
+
= typename handler_type::result_type(); \
|
962
|
+
\
|
963
|
+
struct on_suspend \
|
964
|
+
{ \
|
965
|
+
Initiation& init; \
|
966
|
+
const basic_yield_context<Executor>& yield; \
|
967
|
+
typename handler_type::result_type& result; \
|
968
|
+
BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS(n) \
|
969
|
+
\
|
970
|
+
void do_call() \
|
971
|
+
{ \
|
972
|
+
BOOST_ASIO_MOVE_CAST(Initiation)(init)( \
|
973
|
+
handler_type(yield, result), \
|
974
|
+
BOOST_ASIO_VARIADIC_MOVE_ARGS(n)); \
|
975
|
+
} \
|
976
|
+
\
|
977
|
+
static void call(void* arg) \
|
978
|
+
{ \
|
979
|
+
static_cast<on_suspend*>(arg)->do_call(); \
|
980
|
+
} \
|
981
|
+
} o = { init, yield, result, BOOST_ASIO_VARIADIC_BYVAL_ARGS(n) }; \
|
982
|
+
\
|
983
|
+
yield.spawned_thread_->suspend_with(&on_suspend::call, &o); \
|
984
|
+
\
|
985
|
+
return handler_type::on_resume(result); \
|
986
|
+
} \
|
987
|
+
/**/
|
988
|
+
BOOST_ASIO_VARIADIC_GENERATE(BOOST_ASIO_PRIVATE_INITIATE_DEF)
|
989
|
+
#undef BOOST_ASIO_PRIVATE_INITIATE_DEF
|
990
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS
|
991
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_1
|
992
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_2
|
993
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_3
|
994
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_4
|
995
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_5
|
996
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_6
|
997
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_7
|
998
|
+
#undef BOOST_ASIO_PRIVATE_ON_SUSPEND_MEMBERS_8
|
999
|
+
|
1000
|
+
#endif // defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
|
1001
|
+
};
|
1002
|
+
|
1003
|
+
namespace detail {
|
1004
|
+
|
1005
|
+
template <typename Executor, typename Function, typename Handler>
|
1006
|
+
class spawn_entry_point
|
1007
|
+
{
|
1008
|
+
public:
|
1009
|
+
template <typename F, typename H>
|
1010
|
+
spawn_entry_point(const Executor& ex,
|
1011
|
+
BOOST_ASIO_MOVE_ARG(F) f, BOOST_ASIO_MOVE_ARG(H) h)
|
1012
|
+
: executor_(ex),
|
1013
|
+
function_(BOOST_ASIO_MOVE_CAST(F)(f)),
|
1014
|
+
handler_(BOOST_ASIO_MOVE_CAST(H)(h)),
|
1015
|
+
work_(handler_, executor_)
|
1016
|
+
{
|
1017
|
+
}
|
372
1018
|
|
373
|
-
|
1019
|
+
void operator()(spawned_thread_base* spawned_thread)
|
1020
|
+
{
|
1021
|
+
const basic_yield_context<Executor> yield(spawned_thread, executor_);
|
1022
|
+
this->call(yield,
|
1023
|
+
void_type<typename result_of<Function(
|
1024
|
+
basic_yield_context<Executor>)>::type>());
|
1025
|
+
}
|
374
1026
|
|
375
|
-
|
1027
|
+
private:
|
1028
|
+
void call(const basic_yield_context<Executor>& yield, void_type<void>)
|
1029
|
+
{
|
1030
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1031
|
+
try
|
1032
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1033
|
+
{
|
1034
|
+
function_(yield);
|
1035
|
+
if (!yield.spawned_thread_->has_context_switched())
|
1036
|
+
(post)(yield);
|
1037
|
+
detail::binder1<Handler, exception_ptr>
|
1038
|
+
handler(handler_, exception_ptr());
|
1039
|
+
work_.complete(handler, handler.handler_);
|
1040
|
+
}
|
1041
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1042
|
+
# if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1043
|
+
catch (const boost::context::detail::forced_unwind&)
|
1044
|
+
{
|
1045
|
+
throw;
|
1046
|
+
}
|
1047
|
+
# endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1048
|
+
# if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1049
|
+
catch (const boost::coroutines::detail::forced_unwind&)
|
1050
|
+
{
|
1051
|
+
throw;
|
1052
|
+
}
|
1053
|
+
# endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1054
|
+
catch (...)
|
376
1055
|
{
|
377
|
-
|
1056
|
+
exception_ptr ex = current_exception();
|
1057
|
+
if (!yield.spawned_thread_->has_context_switched())
|
1058
|
+
(post)(yield);
|
1059
|
+
detail::binder1<Handler, exception_ptr> handler(handler_, ex);
|
1060
|
+
work_.complete(handler, handler.handler_);
|
378
1061
|
}
|
1062
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1063
|
+
}
|
379
1064
|
|
380
|
-
|
1065
|
+
template <typename T>
|
1066
|
+
void call(const basic_yield_context<Executor>& yield, void_type<T>)
|
1067
|
+
{
|
1068
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1069
|
+
try
|
1070
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1071
|
+
{
|
1072
|
+
T result(function_(yield));
|
1073
|
+
if (!yield.spawned_thread_->has_context_switched())
|
1074
|
+
(post)(yield);
|
1075
|
+
detail::binder2<Handler, exception_ptr, T>
|
1076
|
+
handler(handler_, exception_ptr(), BOOST_ASIO_MOVE_CAST(T)(result));
|
1077
|
+
work_.complete(handler, handler.handler_);
|
1078
|
+
}
|
1079
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1080
|
+
# if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1081
|
+
catch (const boost::context::detail::forced_unwind&)
|
1082
|
+
{
|
1083
|
+
throw;
|
1084
|
+
}
|
1085
|
+
# endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1086
|
+
# if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1087
|
+
catch (const boost::coroutines::detail::forced_unwind&)
|
1088
|
+
{
|
1089
|
+
throw;
|
1090
|
+
}
|
1091
|
+
# endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1092
|
+
catch (...)
|
381
1093
|
{
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
(
|
1094
|
+
exception_ptr ex = current_exception();
|
1095
|
+
if (!yield.spawned_thread_->has_context_switched())
|
1096
|
+
(post)(yield);
|
1097
|
+
detail::binder2<Handler, exception_ptr, T> handler(handler_, ex, T());
|
1098
|
+
work_.complete(handler, handler.handler_);
|
387
1099
|
}
|
1100
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1101
|
+
}
|
388
1102
|
|
389
|
-
|
390
|
-
|
391
|
-
|
1103
|
+
Executor executor_;
|
1104
|
+
Function function_;
|
1105
|
+
Handler handler_;
|
1106
|
+
handler_work<Handler, Executor> work_;
|
1107
|
+
};
|
392
1108
|
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
1109
|
+
struct spawn_cancellation_signal_emitter
|
1110
|
+
{
|
1111
|
+
cancellation_signal* signal_;
|
1112
|
+
cancellation_type_t type_;
|
1113
|
+
|
1114
|
+
void operator()()
|
1115
|
+
{
|
1116
|
+
signal_->emit(type_);
|
1117
|
+
}
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
template <typename Handler, typename Executor, typename = void>
|
1121
|
+
class spawn_cancellation_handler
|
1122
|
+
{
|
1123
|
+
public:
|
1124
|
+
spawn_cancellation_handler(const Handler&, const Executor& ex)
|
1125
|
+
: ex_(ex)
|
1126
|
+
{
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
cancellation_slot slot()
|
1130
|
+
{
|
1131
|
+
return signal_.slot();
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
void operator()(cancellation_type_t type)
|
1135
|
+
{
|
1136
|
+
spawn_cancellation_signal_emitter emitter = { &signal_, type };
|
1137
|
+
(dispatch)(ex_, emitter);
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
private:
|
1141
|
+
cancellation_signal signal_;
|
1142
|
+
Executor ex_;
|
1143
|
+
};
|
1144
|
+
|
1145
|
+
|
1146
|
+
template <typename Handler, typename Executor>
|
1147
|
+
class spawn_cancellation_handler<Handler, Executor,
|
1148
|
+
typename enable_if<
|
1149
|
+
is_same<
|
1150
|
+
typename associated_executor<Handler,
|
1151
|
+
Executor>::asio_associated_executor_is_unspecialised,
|
1152
|
+
void
|
1153
|
+
>::value
|
1154
|
+
>::type>
|
1155
|
+
{
|
1156
|
+
public:
|
1157
|
+
spawn_cancellation_handler(const Handler&, const Executor&)
|
1158
|
+
{
|
1159
|
+
}
|
1160
|
+
|
1161
|
+
cancellation_slot slot()
|
1162
|
+
{
|
1163
|
+
return signal_.slot();
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
void operator()(cancellation_type_t type)
|
1167
|
+
{
|
1168
|
+
signal_.emit(type);
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
private:
|
1172
|
+
cancellation_signal signal_;
|
1173
|
+
};
|
1174
|
+
|
1175
|
+
template <typename Executor>
|
1176
|
+
class initiate_spawn
|
1177
|
+
{
|
1178
|
+
public:
|
1179
|
+
typedef Executor executor_type;
|
1180
|
+
|
1181
|
+
explicit initiate_spawn(const executor_type& ex)
|
1182
|
+
: executor_(ex)
|
1183
|
+
{
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
executor_type get_executor() const BOOST_ASIO_NOEXCEPT
|
1187
|
+
{
|
1188
|
+
return executor_;
|
1189
|
+
}
|
1190
|
+
|
1191
|
+
template <typename Handler, typename F>
|
1192
|
+
void operator()(BOOST_ASIO_MOVE_ARG(Handler) handler,
|
1193
|
+
BOOST_ASIO_MOVE_ARG(F) f) const
|
1194
|
+
{
|
1195
|
+
typedef typename decay<Handler>::type handler_type;
|
1196
|
+
typedef typename decay<F>::type function_type;
|
1197
|
+
typedef spawn_cancellation_handler<
|
1198
|
+
handler_type, Executor> cancel_handler_type;
|
1199
|
+
|
1200
|
+
typename associated_cancellation_slot<handler_type>::type slot
|
1201
|
+
= boost::asio::get_associated_cancellation_slot(handler);
|
1202
|
+
|
1203
|
+
cancel_handler_type* cancel_handler = slot.is_connected()
|
1204
|
+
? &slot.template emplace<cancel_handler_type>(handler, executor_)
|
1205
|
+
: 0;
|
1206
|
+
|
1207
|
+
cancellation_slot proxy_slot(
|
1208
|
+
cancel_handler
|
1209
|
+
? cancel_handler->slot()
|
1210
|
+
: cancellation_slot());
|
1211
|
+
|
1212
|
+
cancellation_state cancel_state(proxy_slot);
|
1213
|
+
|
1214
|
+
(dispatch)(executor_,
|
1215
|
+
spawned_thread_resumer(
|
1216
|
+
default_spawned_thread_type::spawn(
|
1217
|
+
spawn_entry_point<Executor, function_type, handler_type>(
|
1218
|
+
executor_, BOOST_ASIO_MOVE_CAST(F)(f),
|
1219
|
+
BOOST_ASIO_MOVE_CAST(Handler)(handler)),
|
1220
|
+
proxy_slot, cancel_state)));
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
#if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1224
|
+
|
1225
|
+
template <typename Handler, typename StackAllocator, typename F>
|
1226
|
+
void operator()(BOOST_ASIO_MOVE_ARG(Handler) handler, allocator_arg_t,
|
1227
|
+
BOOST_ASIO_MOVE_ARG(StackAllocator) stack_allocator,
|
1228
|
+
BOOST_ASIO_MOVE_ARG(F) f) const
|
1229
|
+
{
|
1230
|
+
typedef typename decay<Handler>::type handler_type;
|
1231
|
+
typedef typename decay<F>::type function_type;
|
1232
|
+
typedef spawn_cancellation_handler<
|
1233
|
+
handler_type, Executor> cancel_handler_type;
|
1234
|
+
|
1235
|
+
typename associated_cancellation_slot<handler_type>::type slot
|
1236
|
+
= boost::asio::get_associated_cancellation_slot(handler);
|
1237
|
+
|
1238
|
+
cancel_handler_type* cancel_handler = slot.is_connected()
|
1239
|
+
? &slot.template emplace<cancel_handler_type>(handler, executor_)
|
1240
|
+
: 0;
|
1241
|
+
|
1242
|
+
cancellation_slot proxy_slot(
|
1243
|
+
cancel_handler
|
1244
|
+
? cancel_handler->slot()
|
1245
|
+
: cancellation_slot());
|
1246
|
+
|
1247
|
+
cancellation_state cancel_state(proxy_slot);
|
1248
|
+
|
1249
|
+
(dispatch)(executor_,
|
1250
|
+
spawned_thread_resumer(
|
1251
|
+
spawned_fiber_thread::spawn(allocator_arg_t(),
|
1252
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1253
|
+
spawn_entry_point<Executor, function_type, handler_type>(
|
1254
|
+
executor_, BOOST_ASIO_MOVE_CAST(F)(f),
|
1255
|
+
BOOST_ASIO_MOVE_CAST(Handler)(handler)),
|
1256
|
+
proxy_slot, cancel_state)));
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1260
|
+
|
1261
|
+
private:
|
1262
|
+
executor_type executor_;
|
1263
|
+
};
|
1264
|
+
|
1265
|
+
} // namespace detail
|
1266
|
+
|
1267
|
+
template <typename Executor, typename F,
|
1268
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1269
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1270
|
+
CompletionToken>
|
1271
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1272
|
+
typename detail::spawn_signature<
|
1273
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1274
|
+
spawn(const Executor& ex, BOOST_ASIO_MOVE_ARG(F) function,
|
1275
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1276
|
+
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1277
|
+
typename constraint<
|
1278
|
+
!is_same<
|
1279
|
+
typename decay<CompletionToken>::type,
|
1280
|
+
boost::coroutines::attributes
|
1281
|
+
>::value
|
1282
|
+
>::type,
|
1283
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1284
|
+
typename constraint<
|
1285
|
+
is_executor<Executor>::value || execution::is_executor<Executor>::value
|
1286
|
+
>::type)
|
1287
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1288
|
+
async_initiate<CompletionToken,
|
1289
|
+
typename detail::spawn_signature<
|
1290
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1291
|
+
declval<detail::initiate_spawn<Executor> >(),
|
1292
|
+
token, BOOST_ASIO_MOVE_CAST(F)(function))))
|
1293
|
+
{
|
1294
|
+
return async_initiate<CompletionToken,
|
1295
|
+
typename detail::spawn_signature<
|
1296
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1297
|
+
detail::initiate_spawn<Executor>(ex),
|
1298
|
+
token, BOOST_ASIO_MOVE_CAST(F)(function));
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
template <typename ExecutionContext, typename F,
|
1302
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1303
|
+
typename result_of<F(basic_yield_context<
|
1304
|
+
typename ExecutionContext::executor_type>)>::type>::type)
|
1305
|
+
CompletionToken>
|
1306
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1307
|
+
typename detail::spawn_signature<
|
1308
|
+
typename result_of<F(basic_yield_context<
|
1309
|
+
typename ExecutionContext::executor_type>)>::type>::type)
|
1310
|
+
spawn(ExecutionContext& ctx, BOOST_ASIO_MOVE_ARG(F) function,
|
1311
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1312
|
+
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1313
|
+
typename constraint<
|
1314
|
+
!is_same<
|
1315
|
+
typename decay<CompletionToken>::type,
|
1316
|
+
boost::coroutines::attributes
|
1317
|
+
>::value
|
1318
|
+
>::type,
|
1319
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1320
|
+
typename constraint<
|
1321
|
+
is_convertible<ExecutionContext&, execution_context&>::value
|
1322
|
+
>::type)
|
1323
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1324
|
+
async_initiate<CompletionToken,
|
1325
|
+
typename detail::spawn_signature<
|
1326
|
+
typename result_of<F(basic_yield_context<
|
1327
|
+
typename ExecutionContext::executor_type>)>::type>::type>(
|
1328
|
+
declval<detail::initiate_spawn<
|
1329
|
+
typename ExecutionContext::executor_type> >(),
|
1330
|
+
token, BOOST_ASIO_MOVE_CAST(F)(function))))
|
1331
|
+
{
|
1332
|
+
return (spawn)(ctx.get_executor(), BOOST_ASIO_MOVE_CAST(F)(function),
|
1333
|
+
BOOST_ASIO_MOVE_CAST(CompletionToken)(token));
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
template <typename Executor, typename F,
|
1337
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1338
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1339
|
+
CompletionToken>
|
1340
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1341
|
+
typename detail::spawn_signature<
|
1342
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1343
|
+
spawn(const basic_yield_context<Executor>& ctx,
|
1344
|
+
BOOST_ASIO_MOVE_ARG(F) function,
|
1345
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1346
|
+
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1347
|
+
typename constraint<
|
1348
|
+
!is_same<
|
1349
|
+
typename decay<CompletionToken>::type,
|
1350
|
+
boost::coroutines::attributes
|
1351
|
+
>::value
|
1352
|
+
>::type,
|
1353
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1354
|
+
typename constraint<
|
1355
|
+
is_executor<Executor>::value || execution::is_executor<Executor>::value
|
1356
|
+
>::type)
|
1357
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1358
|
+
async_initiate<CompletionToken,
|
1359
|
+
typename detail::spawn_signature<
|
1360
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1361
|
+
declval<detail::initiate_spawn<Executor> >(),
|
1362
|
+
token, BOOST_ASIO_MOVE_CAST(F)(function))))
|
1363
|
+
{
|
1364
|
+
return (spawn)(ctx.get_executor(), BOOST_ASIO_MOVE_CAST(F)(function),
|
1365
|
+
BOOST_ASIO_MOVE_CAST(CompletionToken)(token));
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
#if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1369
|
+
|
1370
|
+
template <typename Executor, typename StackAllocator, typename F,
|
1371
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1372
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1373
|
+
CompletionToken>
|
1374
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1375
|
+
typename detail::spawn_signature<
|
1376
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1377
|
+
spawn(const Executor& ex, allocator_arg_t,
|
1378
|
+
BOOST_ASIO_MOVE_ARG(StackAllocator) stack_allocator,
|
1379
|
+
BOOST_ASIO_MOVE_ARG(F) function,
|
1380
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1381
|
+
typename constraint<
|
1382
|
+
is_executor<Executor>::value || execution::is_executor<Executor>::value
|
1383
|
+
>::type)
|
1384
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1385
|
+
async_initiate<CompletionToken,
|
1386
|
+
typename detail::spawn_signature<
|
1387
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1388
|
+
declval<detail::initiate_spawn<Executor> >(),
|
1389
|
+
token, allocator_arg_t(),
|
1390
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1391
|
+
BOOST_ASIO_MOVE_CAST(F)(function))))
|
1392
|
+
{
|
1393
|
+
return async_initiate<CompletionToken,
|
1394
|
+
typename detail::spawn_signature<
|
1395
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1396
|
+
detail::initiate_spawn<Executor>(ex), token, allocator_arg_t(),
|
1397
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1398
|
+
BOOST_ASIO_MOVE_CAST(F)(function));
|
1399
|
+
}
|
1400
|
+
|
1401
|
+
template <typename ExecutionContext, typename StackAllocator, typename F,
|
1402
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1403
|
+
typename result_of<F(basic_yield_context<
|
1404
|
+
typename ExecutionContext::executor_type>)>::type>::type)
|
1405
|
+
CompletionToken>
|
1406
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1407
|
+
typename detail::spawn_signature<
|
1408
|
+
typename result_of<F(basic_yield_context<
|
1409
|
+
typename ExecutionContext::executor_type>)>::type>::type)
|
1410
|
+
spawn(ExecutionContext& ctx, allocator_arg_t,
|
1411
|
+
BOOST_ASIO_MOVE_ARG(StackAllocator) stack_allocator,
|
1412
|
+
BOOST_ASIO_MOVE_ARG(F) function,
|
1413
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1414
|
+
typename constraint<
|
1415
|
+
is_convertible<ExecutionContext&, execution_context&>::value
|
1416
|
+
>::type)
|
1417
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1418
|
+
async_initiate<CompletionToken,
|
1419
|
+
typename detail::spawn_signature<
|
1420
|
+
typename result_of<F(basic_yield_context<
|
1421
|
+
typename ExecutionContext::executor_type>)>::type>::type>(
|
1422
|
+
declval<detail::initiate_spawn<
|
1423
|
+
typename ExecutionContext::executor_type> >(),
|
1424
|
+
token, allocator_arg_t(),
|
1425
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1426
|
+
BOOST_ASIO_MOVE_CAST(F)(function))))
|
1427
|
+
{
|
1428
|
+
return (spawn)(ctx.get_executor(), allocator_arg_t(),
|
1429
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1430
|
+
BOOST_ASIO_MOVE_CAST(F)(function),
|
1431
|
+
BOOST_ASIO_MOVE_CAST(CompletionToken)(token));
|
1432
|
+
}
|
1433
|
+
|
1434
|
+
template <typename Executor, typename StackAllocator, typename F,
|
1435
|
+
BOOST_ASIO_COMPLETION_TOKEN_FOR(typename detail::spawn_signature<
|
1436
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1437
|
+
CompletionToken>
|
1438
|
+
inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(CompletionToken,
|
1439
|
+
typename detail::spawn_signature<
|
1440
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type)
|
1441
|
+
spawn(const basic_yield_context<Executor>& ctx, allocator_arg_t,
|
1442
|
+
BOOST_ASIO_MOVE_ARG(StackAllocator) stack_allocator,
|
1443
|
+
BOOST_ASIO_MOVE_ARG(F) function,
|
1444
|
+
BOOST_ASIO_MOVE_ARG(CompletionToken) token,
|
1445
|
+
typename constraint<
|
1446
|
+
is_executor<Executor>::value || execution::is_executor<Executor>::value
|
1447
|
+
>::type)
|
1448
|
+
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1449
|
+
async_initiate<CompletionToken,
|
1450
|
+
typename detail::spawn_signature<
|
1451
|
+
typename result_of<F(basic_yield_context<Executor>)>::type>::type>(
|
1452
|
+
declval<detail::initiate_spawn<Executor> >(),
|
1453
|
+
token, allocator_arg_t(),
|
1454
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1455
|
+
BOOST_ASIO_MOVE_CAST(F)(function))))
|
1456
|
+
{
|
1457
|
+
return (spawn)(ctx.get_executor(), allocator_arg_t(),
|
1458
|
+
BOOST_ASIO_MOVE_CAST(StackAllocator)(stack_allocator),
|
1459
|
+
BOOST_ASIO_MOVE_CAST(F)(function),
|
1460
|
+
BOOST_ASIO_MOVE_CAST(CompletionToken)(token));
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
1464
|
+
|
1465
|
+
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
1466
|
+
|
1467
|
+
namespace detail {
|
1468
|
+
|
1469
|
+
template <typename Executor, typename Function, typename Handler>
|
1470
|
+
class old_spawn_entry_point
|
1471
|
+
{
|
1472
|
+
public:
|
1473
|
+
template <typename F, typename H>
|
1474
|
+
old_spawn_entry_point(const Executor& ex,
|
1475
|
+
BOOST_ASIO_MOVE_ARG(F) f, BOOST_ASIO_MOVE_ARG(H) h)
|
1476
|
+
: executor_(ex),
|
1477
|
+
function_(BOOST_ASIO_MOVE_CAST(F)(f)),
|
1478
|
+
handler_(BOOST_ASIO_MOVE_CAST(H)(h))
|
1479
|
+
{
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
void operator()(spawned_thread_base* spawned_thread)
|
1483
|
+
{
|
1484
|
+
const basic_yield_context<Executor> yield(spawned_thread, executor_);
|
1485
|
+
this->call(yield,
|
1486
|
+
void_type<typename result_of<Function(
|
1487
|
+
basic_yield_context<Executor>)>::type>());
|
1488
|
+
}
|
1489
|
+
|
1490
|
+
private:
|
1491
|
+
void call(const basic_yield_context<Executor>& yield, void_type<void>)
|
397
1492
|
{
|
398
|
-
|
399
|
-
|
400
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
401
|
-
return asio_handler_invoke_is_no_longer_used();
|
402
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1493
|
+
function_(yield);
|
1494
|
+
BOOST_ASIO_MOVE_OR_LVALUE(Handler)(handler_)();
|
403
1495
|
}
|
404
1496
|
|
405
|
-
template <typename
|
406
|
-
|
407
|
-
asio_handler_invoke(const Function& function,
|
408
|
-
spawn_helper<Handler, Function1>* this_handler)
|
1497
|
+
template <typename T>
|
1498
|
+
void call(const basic_yield_context<Executor>& yield, void_type<T>)
|
409
1499
|
{
|
410
|
-
|
411
|
-
function, this_handler->data_->handler_);
|
412
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
413
|
-
return asio_handler_invoke_is_no_longer_used();
|
414
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1500
|
+
BOOST_ASIO_MOVE_OR_LVALUE(Handler)(handler_)(function_(yield));
|
415
1501
|
}
|
416
1502
|
|
417
|
-
|
1503
|
+
Executor executor_;
|
1504
|
+
Function function_;
|
1505
|
+
Handler handler_;
|
1506
|
+
};
|
1507
|
+
|
1508
|
+
inline void default_spawn_handler() {}
|
418
1509
|
|
419
1510
|
} // namespace detail
|
420
1511
|
|
@@ -434,50 +1525,49 @@ template <typename Handler, typename Function>
|
|
434
1525
|
void spawn(BOOST_ASIO_MOVE_ARG(Handler) handler,
|
435
1526
|
BOOST_ASIO_MOVE_ARG(Function) function,
|
436
1527
|
const boost::coroutines::attributes& attributes,
|
437
|
-
typename
|
1528
|
+
typename constraint<
|
438
1529
|
!is_executor<typename decay<Handler>::type>::value &&
|
439
1530
|
!execution::is_executor<typename decay<Handler>::type>::value &&
|
440
|
-
!is_convertible<Handler&, execution_context&>::value>::type
|
1531
|
+
!is_convertible<Handler&, execution_context&>::value>::type)
|
441
1532
|
{
|
442
1533
|
typedef typename decay<Handler>::type handler_type;
|
443
1534
|
typedef typename decay<Function>::type function_type;
|
1535
|
+
typedef typename associated_executor<handler_type>::type executor_type;
|
444
1536
|
|
445
|
-
|
446
|
-
helper.data_.reset(
|
447
|
-
new detail::spawn_data<handler_type, function_type>(
|
448
|
-
BOOST_ASIO_MOVE_CAST(Handler)(handler), true,
|
449
|
-
BOOST_ASIO_MOVE_CAST(Function)(function)));
|
450
|
-
helper.attributes_ = attributes;
|
1537
|
+
executor_type ex((get_associated_executor)(handler));
|
451
1538
|
|
452
|
-
|
1539
|
+
(dispatch)(ex,
|
1540
|
+
detail::spawned_thread_resumer(
|
1541
|
+
detail::spawned_coroutine_thread::spawn(
|
1542
|
+
detail::old_spawn_entry_point<executor_type,
|
1543
|
+
function_type, void (*)()>(
|
1544
|
+
ex, BOOST_ASIO_MOVE_CAST(Function)(function),
|
1545
|
+
&detail::default_spawn_handler), attributes)));
|
453
1546
|
}
|
454
1547
|
|
455
|
-
template <typename
|
456
|
-
void spawn(basic_yield_context<
|
1548
|
+
template <typename Executor, typename Function>
|
1549
|
+
void spawn(basic_yield_context<Executor> ctx,
|
457
1550
|
BOOST_ASIO_MOVE_ARG(Function) function,
|
458
1551
|
const boost::coroutines::attributes& attributes)
|
459
1552
|
{
|
460
1553
|
typedef typename decay<Function>::type function_type;
|
461
1554
|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
helper.attributes_ = attributes;
|
470
|
-
|
471
|
-
boost::asio::dispatch(helper);
|
1555
|
+
(dispatch)(ctx.get_executor(),
|
1556
|
+
detail::spawned_thread_resumer(
|
1557
|
+
detail::spawned_coroutine_thread::spawn(
|
1558
|
+
detail::old_spawn_entry_point<Executor,
|
1559
|
+
function_type, void (*)()>(ctx.get_executor(),
|
1560
|
+
BOOST_ASIO_MOVE_CAST(Function)(function),
|
1561
|
+
&detail::default_spawn_handler), attributes)));
|
472
1562
|
}
|
473
1563
|
|
474
1564
|
template <typename Function, typename Executor>
|
475
1565
|
inline void spawn(const Executor& ex,
|
476
1566
|
BOOST_ASIO_MOVE_ARG(Function) function,
|
477
1567
|
const boost::coroutines::attributes& attributes,
|
478
|
-
typename
|
1568
|
+
typename constraint<
|
479
1569
|
is_executor<Executor>::value || execution::is_executor<Executor>::value
|
480
|
-
>::type
|
1570
|
+
>::type)
|
481
1571
|
{
|
482
1572
|
boost::asio::spawn(boost::asio::strand<Executor>(ex),
|
483
1573
|
BOOST_ASIO_MOVE_CAST(Function)(function), attributes);
|
@@ -511,14 +1601,14 @@ template <typename Function, typename ExecutionContext>
|
|
511
1601
|
inline void spawn(ExecutionContext& ctx,
|
512
1602
|
BOOST_ASIO_MOVE_ARG(Function) function,
|
513
1603
|
const boost::coroutines::attributes& attributes,
|
514
|
-
typename
|
515
|
-
ExecutionContext&, execution_context&>::value>::type
|
1604
|
+
typename constraint<is_convertible<
|
1605
|
+
ExecutionContext&, execution_context&>::value>::type)
|
516
1606
|
{
|
517
1607
|
boost::asio::spawn(ctx.get_executor(),
|
518
1608
|
BOOST_ASIO_MOVE_CAST(Function)(function), attributes);
|
519
1609
|
}
|
520
1610
|
|
521
|
-
#endif //
|
1611
|
+
#endif // defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
522
1612
|
|
523
1613
|
} // namespace asio
|
524
1614
|
} // namespace boost
|