passenger 6.0.26 → 6.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +28 -1
- data/CONTRIBUTING.md +2 -2
- data/build/agent.rb +0 -2
- data/build/basics.rb +2 -0
- data/build/common_library.rb +0 -6
- data/build/misc.rb +0 -2
- data/build/schema_printer.rb +0 -2
- data/build/support/cxx_dependency_map.rb +57 -254
- data/dev/copy_boost_headers +3 -14
- data/dev/index_cxx_dependencies.rb +1 -1
- data/doc/AiInstructions.md +112 -0
- data/doc/CxxMockingStrategy.md +42 -0
- data/doc/CxxTestingGuide.md +110 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +22 -14
- data/doc/TempFileHandling.md +15 -0
- data/passenger.gemspec +1 -1
- data/resources/templates/standalone/server.erb +1 -0
- data/src/agent/Core/ApiServer.h +0 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +10 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +33 -18
- data/src/agent/Core/ApplicationPool/Group.h +0 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +0 -3
- data/src/agent/Core/ApplicationPool/Session.h +14 -19
- data/src/agent/Core/ApplicationPool/Socket.h +15 -5
- data/src/agent/Core/ApplicationPool/TestSession.h +74 -15
- data/src/agent/Core/Config.h +2 -34
- data/src/agent/Core/ConfigChange.cpp +1 -41
- data/src/agent/Core/Controller/CheckoutSession.cpp +100 -14
- data/src/agent/Core/Controller/Client.h +0 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/Controller/Hooks.cpp +13 -0
- data/src/agent/Core/Controller/InitRequest.cpp +2 -0
- data/src/agent/Core/Controller/InternalUtils.cpp +12 -0
- data/src/agent/Core/Controller/Request.h +3 -2
- data/src/agent/Core/Controller.h +12 -13
- data/src/agent/Core/CoreMain.cpp +1 -56
- data/src/agent/Core/OptionParser.h +1 -7
- data/src/agent/Core/SecurityUpdateChecker.h +0 -1
- data/src/agent/Watchdog/Config.h +2 -21
- data/src/agent/Watchdog/WatchdogMain.cpp +0 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +0 -20
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +0 -60
- data/src/apache2_module/Hooks.cpp +0 -4
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +0 -44
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +0 -52
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +4 -7
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -160
- data/src/cxx_supportlib/Constants.h +2 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +2 -3
- data/src/cxx_supportlib/FileTools/FileManip.h +2 -0
- data/src/cxx_supportlib/Hooks.h +0 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +49 -60
- data/src/cxx_supportlib/IOTools/IOUtils.h +65 -73
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +2 -0
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +8 -6
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +2 -2
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +0 -2
- data/src/cxx_supportlib/Utils/FastStringStream.h +7 -7
- data/src/cxx_supportlib/Utils/IniFile.h +24 -25
- data/src/cxx_supportlib/Utils.h +0 -30
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +4 -0
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -0
- data/src/cxx_supportlib/oxt/implementation.cpp +41 -2
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -0
- data/src/cxx_supportlib/oxt/system_calls.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_or_allocator_rebind.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +23 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +72 -49
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +15 -11
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +36 -9
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +21 -17
- data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +10 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +8 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +21 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +5 -15
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +73 -14
- data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +18 -29
- data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +6 -10
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +12 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/parent_from_member.hpp +5 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/adl_move_swap.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +1 -20
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils_core.hpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/placement_new.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +10 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/experimental_traits.hpp +4 -49
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +47 -46
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_swap.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +12 -252
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_utility.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +101 -592
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/pointer_cast.hpp +12 -24
- data/src/cxx_supportlib/vendor-modified/boost/random/beta_distribution.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +37 -44
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/bad_weak_ptr.hpp +1 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/deprecated_macros.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_counted_base.hpp +14 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_sp_deleter.hpp +7 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +39 -90
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_convertible.hpp +0 -16
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_nt.hpp +13 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +16 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +16 -55
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_noexcept.hpp +5 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_type_traits.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_std_atomic.hpp +5 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +7 -10
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +32 -110
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ref_counter.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +10 -9
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +28 -565
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_unique.hpp +11 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +17 -21
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +20 -22
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +34 -68
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +78 -356
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +31 -89
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +195 -12
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set.hpp +206 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map.hpp +1202 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set.hpp +1065 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/concurrent_static_asserts.hpp +30 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +248 -47
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +120 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_handle.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +15 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_handle.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +11 -10
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/types_constructibility.hpp +172 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +32 -44
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +31 -35
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_printers.hpp +414 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +8 -32
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +6 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +12 -48
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +5 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +21 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +13 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +3 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +4 -0
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +0 -24
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +0 -48
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +0 -16
- data/src/nginx_module/ngx_http_passenger_module.c +0 -4
- data/src/ruby_native_extension/passenger_native_support.c +19 -3
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +8 -24
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +0 -3
- data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +6 -28
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +9 -8
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +2 -27
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +0 -30
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +8 -20
- data/src/ruby_supportlib/phusion_passenger.rb +7 -7
- data/src/schema_printer/SchemaPrinterMain.cpp +0 -4
- metadata +19 -670
- data/dev/websocketpp.patch +0 -39
- data/src/agent/Core/AdminPanelConnector.h +0 -680
- data/src/cxx_supportlib/DataStructures/HashMap.h +0 -60
- data/src/cxx_supportlib/FileTools/LargeFiles.cpp +0 -41
- data/src/cxx_supportlib/FileTools/LargeFiles.h +0 -43
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +0 -975
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +0 -338
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +0 -824
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +0 -223
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +0 -950
- data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +0 -1364
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +0 -712
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +0 -288
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +0 -691
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +0 -1358
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +0 -628
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +0 -825
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +0 -989
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +0 -650
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +0 -1938
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +0 -2710
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +0 -644
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +0 -746
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +0 -1165
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +0 -452
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +0 -624
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +0 -598
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +0 -615
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +0 -666
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +0 -618
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +0 -2755
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +0 -320
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +0 -275
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +0 -267
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +0 -523
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_after.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_at.hpp +0 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +0 -247
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_composed.hpp +0 -1323
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +0 -525
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/composed.hpp +0 -415
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +0 -1348
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/default_completion_token.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +0 -721
- data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +0 -107
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +0 -713
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +0 -109
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +0 -839
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +0 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +0 -90
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_message.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload_handler.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +0 -254
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +0 -122
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +0 -1413
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +0 -445
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +0 -341
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +0 -249
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +0 -268
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +0 -555
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +0 -513
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +0 -996
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +0 -471
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +0 -400
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +0 -916
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +0 -610
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +0 -76
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_serial_port_service.ipp +0 -170
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +0 -234
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +0 -314
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +0 -677
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +0 -402
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +0 -4046
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +0 -348
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +0 -204
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +0 -99
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_defer.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_dispatch.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_post.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiation_base.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +0 -179
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +0 -689
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +0 -263
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +0 -321
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +0 -282
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +0 -194
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +0 -631
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +0 -665
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +0 -298
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +0 -273
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +0 -108
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +0 -521
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +0 -177
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_serial_port_service.hpp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +0 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +0 -228
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +0 -572
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +0 -325
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +0 -205
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +0 -635
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +0 -757
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +0 -214
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +0 -152
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +0 -243
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +0 -89
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +0 -293
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +0 -165
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +0 -377
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +0 -318
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +0 -429
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +0 -185
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +0 -175
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +0 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +0 -57
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timed_cancel_op.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +0 -391
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +0 -145
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +0 -280
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +0 -1935
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +0 -1362
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +0 -1082
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +0 -1004
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +0 -755
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +0 -753
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +0 -365
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +0 -364
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +0 -134
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +0 -538
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +0 -295
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +0 -230
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +0 -681
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +0 -625
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +0 -183
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +0 -1224
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +0 -790
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +0 -257
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +0 -457
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +0 -226
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +0 -168
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +0 -125
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +0 -135
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +0 -112
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/immediate.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +0 -136
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +0 -278
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +0 -1198
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +0 -406
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +0 -386
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_after.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_at.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +0 -98
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +0 -459
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +0 -705
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +0 -84
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +0 -319
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +0 -435
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +0 -178
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +0 -172
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +0 -904
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +0 -564
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +0 -2670
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +0 -289
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +0 -556
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +0 -1402
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +0 -36
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +0 -279
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +0 -782
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +0 -482
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -1507
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +0 -398
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +0 -423
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +0 -158
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +0 -409
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +0 -284
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +0 -1114
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +0 -309
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +0 -143
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +0 -568
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +0 -344
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +0 -259
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +0 -233
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +0 -245
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +0 -775
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +0 -215
- data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +0 -581
- data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +0 -315
- data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +0 -1549
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +0 -830
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +0 -3204
- data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +0 -346
- data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +0 -437
- data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +0 -347
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +0 -169
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +0 -873
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +0 -764
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +0 -211
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +0 -121
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +0 -379
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +0 -378
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +0 -74
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +0 -219
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +0 -1324
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +0 -1044
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +0 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +0 -559
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -673
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +0 -965
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +0 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +0 -163
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +0 -161
- data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +0 -58
- data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +0 -1528
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +0 -843
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +0 -1059
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_forward.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/websocketpp/COPYING +0 -145
- data/src/cxx_supportlib/vendor-modified/websocketpp/changelog.md +0 -444
- data/src/cxx_supportlib/vendor-modified/websocketpp/readme.md +0 -49
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/base64/base64.hpp +0 -178
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/client.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/close.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio_ssl.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/chrono.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/connection_hdl.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/cpp11.hpp +0 -162
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/functional.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +0 -448
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/memory.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/network.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/platforms.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/random.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/regex.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/stdint.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/system_error.hpp +0 -84
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/thread.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/time.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/type_traits.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/basic.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/none.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_client.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/boost_config.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core_client.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_client.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_server.hpp +0 -312
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection.hpp +0 -1642
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint.hpp +0 -700
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/error.hpp +0 -277
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/extension.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -817
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/frame.hpp +0 -853
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/constants.hpp +0 -308
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/parser.hpp +0 -200
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/request.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/response.hpp +0 -266
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/parser.hpp +0 -629
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/request.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/response.hpp +0 -188
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/connection_impl.hpp +0 -2375
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/basic.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/levels.hpp +0 -203
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/stub.hpp +0 -119
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/syslog.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/message.hpp +0 -340
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/pool.hpp +0 -229
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/base.hpp +0 -299
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi00.hpp +0 -462
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi07.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi08.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi13.hpp +0 -1072
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/processor.hpp +0 -407
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/none.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/random_device.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/server.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/sha1/sha1.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/base.hpp +0 -232
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp +0 -1197
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -1182
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -372
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -474
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/connection.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/base.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/connection.hpp +0 -412
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/base.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -714
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/base.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/connection.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/uri.hpp +0 -356
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utf8_validator.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utilities.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/version.hpp +0 -61
@@ -1,1198 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// impl/awaitable.hpp
|
3
|
-
// ~~~~~~~~~~~~~~~~~~
|
4
|
-
//
|
5
|
-
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
6
|
-
//
|
7
|
-
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
8
|
-
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
9
|
-
//
|
10
|
-
|
11
|
-
#ifndef BOOST_ASIO_IMPL_AWAITABLE_HPP
|
12
|
-
#define BOOST_ASIO_IMPL_AWAITABLE_HPP
|
13
|
-
|
14
|
-
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
|
15
|
-
# pragma once
|
16
|
-
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
|
17
|
-
|
18
|
-
#include <boost/asio/detail/config.hpp>
|
19
|
-
#include <exception>
|
20
|
-
#include <new>
|
21
|
-
#include <tuple>
|
22
|
-
#include <boost/asio/cancellation_signal.hpp>
|
23
|
-
#include <boost/asio/cancellation_state.hpp>
|
24
|
-
#include <boost/asio/detail/thread_context.hpp>
|
25
|
-
#include <boost/asio/detail/thread_info_base.hpp>
|
26
|
-
#include <boost/asio/detail/throw_error.hpp>
|
27
|
-
#include <boost/asio/detail/type_traits.hpp>
|
28
|
-
#include <boost/asio/error.hpp>
|
29
|
-
#include <boost/asio/post.hpp>
|
30
|
-
#include <boost/system/system_error.hpp>
|
31
|
-
#include <boost/asio/this_coro.hpp>
|
32
|
-
|
33
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
34
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
35
|
-
# include <boost/asio/detail/source_location.hpp>
|
36
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
37
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
38
|
-
|
39
|
-
#include <boost/asio/detail/push_options.hpp>
|
40
|
-
|
41
|
-
namespace boost {
|
42
|
-
namespace asio {
|
43
|
-
namespace detail {
|
44
|
-
|
45
|
-
struct awaitable_thread_has_context_switched {};
|
46
|
-
template <typename, typename> class awaitable_async_op_handler;
|
47
|
-
template <typename, typename, typename> class awaitable_async_op;
|
48
|
-
|
49
|
-
// An awaitable_thread represents a thread-of-execution that is composed of one
|
50
|
-
// or more "stack frames", with each frame represented by an awaitable_frame.
|
51
|
-
// All execution occurs in the context of the awaitable_thread's executor. An
|
52
|
-
// awaitable_thread continues to "pump" the stack frames by repeatedly resuming
|
53
|
-
// the top stack frame until the stack is empty, or until ownership of the
|
54
|
-
// stack is transferred to another awaitable_thread object.
|
55
|
-
//
|
56
|
-
// +------------------------------------+
|
57
|
-
// | top_of_stack_ |
|
58
|
-
// | V
|
59
|
-
// +--------------+---+ +-----------------+
|
60
|
-
// | | | |
|
61
|
-
// | awaitable_thread |<---------------------------+ awaitable_frame |
|
62
|
-
// | | attached_thread_ | |
|
63
|
-
// +--------------+---+ (Set only when +---+-------------+
|
64
|
-
// | frames are being |
|
65
|
-
// | actively pumped | caller_
|
66
|
-
// | by a thread, and |
|
67
|
-
// | then only for V
|
68
|
-
// | the top frame.) +-----------------+
|
69
|
-
// | | |
|
70
|
-
// | | awaitable_frame |
|
71
|
-
// | | |
|
72
|
-
// | +---+-------------+
|
73
|
-
// | |
|
74
|
-
// | | caller_
|
75
|
-
// | :
|
76
|
-
// | :
|
77
|
-
// | |
|
78
|
-
// | V
|
79
|
-
// | +-----------------+
|
80
|
-
// | bottom_of_stack_ | |
|
81
|
-
// +------------------------------->| awaitable_frame |
|
82
|
-
// | |
|
83
|
-
// +-----------------+
|
84
|
-
|
85
|
-
template <typename Executor>
|
86
|
-
class awaitable_frame_base
|
87
|
-
{
|
88
|
-
public:
|
89
|
-
#if !defined(BOOST_ASIO_DISABLE_AWAITABLE_FRAME_RECYCLING)
|
90
|
-
void* operator new(std::size_t size)
|
91
|
-
{
|
92
|
-
return boost::asio::detail::thread_info_base::allocate(
|
93
|
-
boost::asio::detail::thread_info_base::awaitable_frame_tag(),
|
94
|
-
boost::asio::detail::thread_context::top_of_thread_call_stack(),
|
95
|
-
size);
|
96
|
-
}
|
97
|
-
|
98
|
-
void operator delete(void* pointer, std::size_t size)
|
99
|
-
{
|
100
|
-
boost::asio::detail::thread_info_base::deallocate(
|
101
|
-
boost::asio::detail::thread_info_base::awaitable_frame_tag(),
|
102
|
-
boost::asio::detail::thread_context::top_of_thread_call_stack(),
|
103
|
-
pointer, size);
|
104
|
-
}
|
105
|
-
#endif // !defined(BOOST_ASIO_DISABLE_AWAITABLE_FRAME_RECYCLING)
|
106
|
-
|
107
|
-
// The frame starts in a suspended state until the awaitable_thread object
|
108
|
-
// pumps the stack.
|
109
|
-
auto initial_suspend() noexcept
|
110
|
-
{
|
111
|
-
return suspend_always();
|
112
|
-
}
|
113
|
-
|
114
|
-
// On final suspension the frame is popped from the top of the stack.
|
115
|
-
auto final_suspend() noexcept
|
116
|
-
{
|
117
|
-
struct result
|
118
|
-
{
|
119
|
-
awaitable_frame_base* this_;
|
120
|
-
|
121
|
-
bool await_ready() const noexcept
|
122
|
-
{
|
123
|
-
return false;
|
124
|
-
}
|
125
|
-
|
126
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
127
|
-
{
|
128
|
-
this->this_->pop_frame();
|
129
|
-
}
|
130
|
-
|
131
|
-
void await_resume() const noexcept
|
132
|
-
{
|
133
|
-
}
|
134
|
-
};
|
135
|
-
|
136
|
-
return result{this};
|
137
|
-
}
|
138
|
-
|
139
|
-
void set_except(std::exception_ptr e) noexcept
|
140
|
-
{
|
141
|
-
pending_exception_ = e;
|
142
|
-
}
|
143
|
-
|
144
|
-
void set_error(const boost::system::error_code& ec)
|
145
|
-
{
|
146
|
-
this->set_except(std::make_exception_ptr(boost::system::system_error(ec)));
|
147
|
-
}
|
148
|
-
|
149
|
-
void unhandled_exception()
|
150
|
-
{
|
151
|
-
set_except(std::current_exception());
|
152
|
-
}
|
153
|
-
|
154
|
-
void rethrow_exception()
|
155
|
-
{
|
156
|
-
if (pending_exception_)
|
157
|
-
{
|
158
|
-
std::exception_ptr ex = std::exchange(pending_exception_, nullptr);
|
159
|
-
std::rethrow_exception(ex);
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
void clear_cancellation_slot()
|
164
|
-
{
|
165
|
-
this->attached_thread_->entry_point()->cancellation_state_.slot().clear();
|
166
|
-
}
|
167
|
-
|
168
|
-
template <typename T>
|
169
|
-
auto await_transform(awaitable<T, Executor> a) const
|
170
|
-
{
|
171
|
-
if (attached_thread_->entry_point()->throw_if_cancelled_)
|
172
|
-
if (!!attached_thread_->get_cancellation_state().cancelled())
|
173
|
-
throw_error(boost::asio::error::operation_aborted, "co_await");
|
174
|
-
return a;
|
175
|
-
}
|
176
|
-
|
177
|
-
template <typename Op>
|
178
|
-
auto await_transform(Op&& op,
|
179
|
-
constraint_t<is_async_operation<Op>::value> = 0
|
180
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
181
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
182
|
-
, detail::source_location location = detail::source_location::current()
|
183
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
184
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
185
|
-
)
|
186
|
-
{
|
187
|
-
if (attached_thread_->entry_point()->throw_if_cancelled_)
|
188
|
-
if (!!attached_thread_->get_cancellation_state().cancelled())
|
189
|
-
throw_error(boost::asio::error::operation_aborted, "co_await");
|
190
|
-
|
191
|
-
return awaitable_async_op<
|
192
|
-
completion_signature_of_t<Op>, decay_t<Op>, Executor>{
|
193
|
-
std::forward<Op>(op), this
|
194
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
195
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
196
|
-
, location
|
197
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
198
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
199
|
-
};
|
200
|
-
}
|
201
|
-
|
202
|
-
// This await transformation obtains the associated executor of the thread of
|
203
|
-
// execution.
|
204
|
-
auto await_transform(this_coro::executor_t) noexcept
|
205
|
-
{
|
206
|
-
struct result
|
207
|
-
{
|
208
|
-
awaitable_frame_base* this_;
|
209
|
-
|
210
|
-
bool await_ready() const noexcept
|
211
|
-
{
|
212
|
-
return true;
|
213
|
-
}
|
214
|
-
|
215
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
216
|
-
{
|
217
|
-
}
|
218
|
-
|
219
|
-
auto await_resume() const noexcept
|
220
|
-
{
|
221
|
-
return this_->attached_thread_->get_executor();
|
222
|
-
}
|
223
|
-
};
|
224
|
-
|
225
|
-
return result{this};
|
226
|
-
}
|
227
|
-
|
228
|
-
// This await transformation obtains the associated cancellation state of the
|
229
|
-
// thread of execution.
|
230
|
-
auto await_transform(this_coro::cancellation_state_t) noexcept
|
231
|
-
{
|
232
|
-
struct result
|
233
|
-
{
|
234
|
-
awaitable_frame_base* this_;
|
235
|
-
|
236
|
-
bool await_ready() const noexcept
|
237
|
-
{
|
238
|
-
return true;
|
239
|
-
}
|
240
|
-
|
241
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
242
|
-
{
|
243
|
-
}
|
244
|
-
|
245
|
-
auto await_resume() const noexcept
|
246
|
-
{
|
247
|
-
return this_->attached_thread_->get_cancellation_state();
|
248
|
-
}
|
249
|
-
};
|
250
|
-
|
251
|
-
return result{this};
|
252
|
-
}
|
253
|
-
|
254
|
-
// This await transformation resets the associated cancellation state.
|
255
|
-
auto await_transform(this_coro::reset_cancellation_state_0_t) noexcept
|
256
|
-
{
|
257
|
-
struct result
|
258
|
-
{
|
259
|
-
awaitable_frame_base* this_;
|
260
|
-
|
261
|
-
bool await_ready() const noexcept
|
262
|
-
{
|
263
|
-
return true;
|
264
|
-
}
|
265
|
-
|
266
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
267
|
-
{
|
268
|
-
}
|
269
|
-
|
270
|
-
auto await_resume() const
|
271
|
-
{
|
272
|
-
return this_->attached_thread_->reset_cancellation_state();
|
273
|
-
}
|
274
|
-
};
|
275
|
-
|
276
|
-
return result{this};
|
277
|
-
}
|
278
|
-
|
279
|
-
// This await transformation resets the associated cancellation state.
|
280
|
-
template <typename Filter>
|
281
|
-
auto await_transform(
|
282
|
-
this_coro::reset_cancellation_state_1_t<Filter> reset) noexcept
|
283
|
-
{
|
284
|
-
struct result
|
285
|
-
{
|
286
|
-
awaitable_frame_base* this_;
|
287
|
-
Filter filter_;
|
288
|
-
|
289
|
-
bool await_ready() const noexcept
|
290
|
-
{
|
291
|
-
return true;
|
292
|
-
}
|
293
|
-
|
294
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
295
|
-
{
|
296
|
-
}
|
297
|
-
|
298
|
-
auto await_resume()
|
299
|
-
{
|
300
|
-
return this_->attached_thread_->reset_cancellation_state(
|
301
|
-
static_cast<Filter&&>(filter_));
|
302
|
-
}
|
303
|
-
};
|
304
|
-
|
305
|
-
return result{this, static_cast<Filter&&>(reset.filter)};
|
306
|
-
}
|
307
|
-
|
308
|
-
// This await transformation resets the associated cancellation state.
|
309
|
-
template <typename InFilter, typename OutFilter>
|
310
|
-
auto await_transform(
|
311
|
-
this_coro::reset_cancellation_state_2_t<InFilter, OutFilter> reset)
|
312
|
-
noexcept
|
313
|
-
{
|
314
|
-
struct result
|
315
|
-
{
|
316
|
-
awaitable_frame_base* this_;
|
317
|
-
InFilter in_filter_;
|
318
|
-
OutFilter out_filter_;
|
319
|
-
|
320
|
-
bool await_ready() const noexcept
|
321
|
-
{
|
322
|
-
return true;
|
323
|
-
}
|
324
|
-
|
325
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
326
|
-
{
|
327
|
-
}
|
328
|
-
|
329
|
-
auto await_resume()
|
330
|
-
{
|
331
|
-
return this_->attached_thread_->reset_cancellation_state(
|
332
|
-
static_cast<InFilter&&>(in_filter_),
|
333
|
-
static_cast<OutFilter&&>(out_filter_));
|
334
|
-
}
|
335
|
-
};
|
336
|
-
|
337
|
-
return result{this,
|
338
|
-
static_cast<InFilter&&>(reset.in_filter),
|
339
|
-
static_cast<OutFilter&&>(reset.out_filter)};
|
340
|
-
}
|
341
|
-
|
342
|
-
// This await transformation determines whether cancellation is propagated as
|
343
|
-
// an exception.
|
344
|
-
auto await_transform(this_coro::throw_if_cancelled_0_t)
|
345
|
-
noexcept
|
346
|
-
{
|
347
|
-
struct result
|
348
|
-
{
|
349
|
-
awaitable_frame_base* this_;
|
350
|
-
|
351
|
-
bool await_ready() const noexcept
|
352
|
-
{
|
353
|
-
return true;
|
354
|
-
}
|
355
|
-
|
356
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
357
|
-
{
|
358
|
-
}
|
359
|
-
|
360
|
-
auto await_resume()
|
361
|
-
{
|
362
|
-
return this_->attached_thread_->throw_if_cancelled();
|
363
|
-
}
|
364
|
-
};
|
365
|
-
|
366
|
-
return result{this};
|
367
|
-
}
|
368
|
-
|
369
|
-
// This await transformation sets whether cancellation is propagated as an
|
370
|
-
// exception.
|
371
|
-
auto await_transform(this_coro::throw_if_cancelled_1_t throw_if_cancelled)
|
372
|
-
noexcept
|
373
|
-
{
|
374
|
-
struct result
|
375
|
-
{
|
376
|
-
awaitable_frame_base* this_;
|
377
|
-
bool value_;
|
378
|
-
|
379
|
-
bool await_ready() const noexcept
|
380
|
-
{
|
381
|
-
return true;
|
382
|
-
}
|
383
|
-
|
384
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
385
|
-
{
|
386
|
-
}
|
387
|
-
|
388
|
-
auto await_resume()
|
389
|
-
{
|
390
|
-
this_->attached_thread_->throw_if_cancelled(value_);
|
391
|
-
}
|
392
|
-
};
|
393
|
-
|
394
|
-
return result{this, throw_if_cancelled.value};
|
395
|
-
}
|
396
|
-
|
397
|
-
// This await transformation is used to run an async operation's initiation
|
398
|
-
// function object after the coroutine has been suspended. This ensures that
|
399
|
-
// immediate resumption of the coroutine in another thread does not cause a
|
400
|
-
// race condition.
|
401
|
-
template <typename Function>
|
402
|
-
auto await_transform(Function f,
|
403
|
-
enable_if_t<
|
404
|
-
is_convertible<
|
405
|
-
result_of_t<Function(awaitable_frame_base*)>,
|
406
|
-
awaitable_thread<Executor>*
|
407
|
-
>::value
|
408
|
-
>* = nullptr)
|
409
|
-
{
|
410
|
-
struct result
|
411
|
-
{
|
412
|
-
Function function_;
|
413
|
-
awaitable_frame_base* this_;
|
414
|
-
|
415
|
-
bool await_ready() const noexcept
|
416
|
-
{
|
417
|
-
return false;
|
418
|
-
}
|
419
|
-
|
420
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
421
|
-
{
|
422
|
-
this_->after_suspend(
|
423
|
-
[](void* arg)
|
424
|
-
{
|
425
|
-
result* r = static_cast<result*>(arg);
|
426
|
-
r->function_(r->this_);
|
427
|
-
}, this);
|
428
|
-
}
|
429
|
-
|
430
|
-
void await_resume() const noexcept
|
431
|
-
{
|
432
|
-
}
|
433
|
-
};
|
434
|
-
|
435
|
-
return result{std::move(f), this};
|
436
|
-
}
|
437
|
-
|
438
|
-
// Access the awaitable thread's has_context_switched_ flag.
|
439
|
-
auto await_transform(detail::awaitable_thread_has_context_switched) noexcept
|
440
|
-
{
|
441
|
-
struct result
|
442
|
-
{
|
443
|
-
awaitable_frame_base* this_;
|
444
|
-
|
445
|
-
bool await_ready() const noexcept
|
446
|
-
{
|
447
|
-
return true;
|
448
|
-
}
|
449
|
-
|
450
|
-
void await_suspend(coroutine_handle<void>) noexcept
|
451
|
-
{
|
452
|
-
}
|
453
|
-
|
454
|
-
bool& await_resume() const noexcept
|
455
|
-
{
|
456
|
-
return this_->attached_thread_->entry_point()->has_context_switched_;
|
457
|
-
}
|
458
|
-
};
|
459
|
-
|
460
|
-
return result{this};
|
461
|
-
}
|
462
|
-
|
463
|
-
void attach_thread(awaitable_thread<Executor>* handler) noexcept
|
464
|
-
{
|
465
|
-
attached_thread_ = handler;
|
466
|
-
}
|
467
|
-
|
468
|
-
awaitable_thread<Executor>* detach_thread() noexcept
|
469
|
-
{
|
470
|
-
attached_thread_->entry_point()->has_context_switched_ = true;
|
471
|
-
return std::exchange(attached_thread_, nullptr);
|
472
|
-
}
|
473
|
-
|
474
|
-
void push_frame(awaitable_frame_base<Executor>* caller) noexcept
|
475
|
-
{
|
476
|
-
caller_ = caller;
|
477
|
-
attached_thread_ = caller_->attached_thread_;
|
478
|
-
attached_thread_->entry_point()->top_of_stack_ = this;
|
479
|
-
caller_->attached_thread_ = nullptr;
|
480
|
-
}
|
481
|
-
|
482
|
-
void pop_frame() noexcept
|
483
|
-
{
|
484
|
-
if (caller_)
|
485
|
-
caller_->attached_thread_ = attached_thread_;
|
486
|
-
attached_thread_->entry_point()->top_of_stack_ = caller_;
|
487
|
-
attached_thread_ = nullptr;
|
488
|
-
caller_ = nullptr;
|
489
|
-
}
|
490
|
-
|
491
|
-
struct resume_context
|
492
|
-
{
|
493
|
-
void (*after_suspend_fn_)(void*) = nullptr;
|
494
|
-
void *after_suspend_arg_ = nullptr;
|
495
|
-
};
|
496
|
-
|
497
|
-
void resume()
|
498
|
-
{
|
499
|
-
resume_context context;
|
500
|
-
resume_context_ = &context;
|
501
|
-
coro_.resume();
|
502
|
-
if (context.after_suspend_fn_)
|
503
|
-
context.after_suspend_fn_(context.after_suspend_arg_);
|
504
|
-
}
|
505
|
-
|
506
|
-
void after_suspend(void (*fn)(void*), void* arg)
|
507
|
-
{
|
508
|
-
resume_context_->after_suspend_fn_ = fn;
|
509
|
-
resume_context_->after_suspend_arg_ = arg;
|
510
|
-
}
|
511
|
-
|
512
|
-
void destroy()
|
513
|
-
{
|
514
|
-
coro_.destroy();
|
515
|
-
}
|
516
|
-
|
517
|
-
protected:
|
518
|
-
coroutine_handle<void> coro_ = nullptr;
|
519
|
-
awaitable_thread<Executor>* attached_thread_ = nullptr;
|
520
|
-
awaitable_frame_base<Executor>* caller_ = nullptr;
|
521
|
-
std::exception_ptr pending_exception_ = nullptr;
|
522
|
-
resume_context* resume_context_ = nullptr;
|
523
|
-
};
|
524
|
-
|
525
|
-
template <typename T, typename Executor>
|
526
|
-
class awaitable_frame
|
527
|
-
: public awaitable_frame_base<Executor>
|
528
|
-
{
|
529
|
-
public:
|
530
|
-
awaitable_frame() noexcept
|
531
|
-
{
|
532
|
-
}
|
533
|
-
|
534
|
-
awaitable_frame(awaitable_frame&& other) noexcept
|
535
|
-
: awaitable_frame_base<Executor>(std::move(other))
|
536
|
-
{
|
537
|
-
}
|
538
|
-
|
539
|
-
~awaitable_frame()
|
540
|
-
{
|
541
|
-
if (has_result_)
|
542
|
-
std::launder(static_cast<T*>(static_cast<void*>(result_)))->~T();
|
543
|
-
}
|
544
|
-
|
545
|
-
awaitable<T, Executor> get_return_object() noexcept
|
546
|
-
{
|
547
|
-
this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this);
|
548
|
-
return awaitable<T, Executor>(this);
|
549
|
-
}
|
550
|
-
|
551
|
-
template <typename U>
|
552
|
-
void return_value(U&& u)
|
553
|
-
{
|
554
|
-
new (&result_) T(std::forward<U>(u));
|
555
|
-
has_result_ = true;
|
556
|
-
}
|
557
|
-
|
558
|
-
template <typename... Us>
|
559
|
-
void return_values(Us&&... us)
|
560
|
-
{
|
561
|
-
this->return_value(std::forward_as_tuple(std::forward<Us>(us)...));
|
562
|
-
}
|
563
|
-
|
564
|
-
T get()
|
565
|
-
{
|
566
|
-
this->caller_ = nullptr;
|
567
|
-
this->rethrow_exception();
|
568
|
-
return std::move(*std::launder(
|
569
|
-
static_cast<T*>(static_cast<void*>(result_))));
|
570
|
-
}
|
571
|
-
|
572
|
-
private:
|
573
|
-
alignas(T) unsigned char result_[sizeof(T)];
|
574
|
-
bool has_result_ = false;
|
575
|
-
};
|
576
|
-
|
577
|
-
template <typename Executor>
|
578
|
-
class awaitable_frame<void, Executor>
|
579
|
-
: public awaitable_frame_base<Executor>
|
580
|
-
{
|
581
|
-
public:
|
582
|
-
awaitable<void, Executor> get_return_object()
|
583
|
-
{
|
584
|
-
this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this);
|
585
|
-
return awaitable<void, Executor>(this);
|
586
|
-
}
|
587
|
-
|
588
|
-
void return_void()
|
589
|
-
{
|
590
|
-
}
|
591
|
-
|
592
|
-
void get()
|
593
|
-
{
|
594
|
-
this->caller_ = nullptr;
|
595
|
-
this->rethrow_exception();
|
596
|
-
}
|
597
|
-
};
|
598
|
-
|
599
|
-
struct awaitable_thread_entry_point {};
|
600
|
-
|
601
|
-
template <typename Executor>
|
602
|
-
class awaitable_frame<awaitable_thread_entry_point, Executor>
|
603
|
-
: public awaitable_frame_base<Executor>
|
604
|
-
{
|
605
|
-
public:
|
606
|
-
awaitable_frame()
|
607
|
-
: top_of_stack_(0),
|
608
|
-
has_executor_(false),
|
609
|
-
has_context_switched_(false),
|
610
|
-
throw_if_cancelled_(true)
|
611
|
-
{
|
612
|
-
}
|
613
|
-
|
614
|
-
~awaitable_frame()
|
615
|
-
{
|
616
|
-
if (has_executor_)
|
617
|
-
u_.executor_.~Executor();
|
618
|
-
}
|
619
|
-
|
620
|
-
awaitable<awaitable_thread_entry_point, Executor> get_return_object()
|
621
|
-
{
|
622
|
-
this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this);
|
623
|
-
return awaitable<awaitable_thread_entry_point, Executor>(this);
|
624
|
-
}
|
625
|
-
|
626
|
-
void return_void()
|
627
|
-
{
|
628
|
-
}
|
629
|
-
|
630
|
-
void get()
|
631
|
-
{
|
632
|
-
this->caller_ = nullptr;
|
633
|
-
this->rethrow_exception();
|
634
|
-
}
|
635
|
-
|
636
|
-
private:
|
637
|
-
template <typename> friend class awaitable_frame_base;
|
638
|
-
template <typename, typename> friend class awaitable_async_op_handler;
|
639
|
-
template <typename, typename> friend class awaitable_handler_base;
|
640
|
-
template <typename> friend class awaitable_thread;
|
641
|
-
|
642
|
-
union u
|
643
|
-
{
|
644
|
-
u() {}
|
645
|
-
~u() {}
|
646
|
-
char c_;
|
647
|
-
Executor executor_;
|
648
|
-
} u_;
|
649
|
-
|
650
|
-
awaitable_frame_base<Executor>* top_of_stack_;
|
651
|
-
boost::asio::cancellation_slot parent_cancellation_slot_;
|
652
|
-
boost::asio::cancellation_state cancellation_state_;
|
653
|
-
bool has_executor_;
|
654
|
-
bool has_context_switched_;
|
655
|
-
bool throw_if_cancelled_;
|
656
|
-
};
|
657
|
-
|
658
|
-
template <typename Executor>
|
659
|
-
class awaitable_thread
|
660
|
-
{
|
661
|
-
public:
|
662
|
-
typedef Executor executor_type;
|
663
|
-
typedef cancellation_slot cancellation_slot_type;
|
664
|
-
|
665
|
-
// Construct from the entry point of a new thread of execution.
|
666
|
-
awaitable_thread(awaitable<awaitable_thread_entry_point, Executor> p,
|
667
|
-
const Executor& ex, cancellation_slot parent_cancel_slot,
|
668
|
-
cancellation_state cancel_state)
|
669
|
-
: bottom_of_stack_(std::move(p))
|
670
|
-
{
|
671
|
-
bottom_of_stack_.frame_->top_of_stack_ = bottom_of_stack_.frame_;
|
672
|
-
new (&bottom_of_stack_.frame_->u_.executor_) Executor(ex);
|
673
|
-
bottom_of_stack_.frame_->has_executor_ = true;
|
674
|
-
bottom_of_stack_.frame_->parent_cancellation_slot_ = parent_cancel_slot;
|
675
|
-
bottom_of_stack_.frame_->cancellation_state_ = cancel_state;
|
676
|
-
}
|
677
|
-
|
678
|
-
// Transfer ownership from another awaitable_thread.
|
679
|
-
awaitable_thread(awaitable_thread&& other) noexcept
|
680
|
-
: bottom_of_stack_(std::move(other.bottom_of_stack_))
|
681
|
-
{
|
682
|
-
}
|
683
|
-
|
684
|
-
// Clean up with a last ditch effort to ensure the thread is unwound within
|
685
|
-
// the context of the executor.
|
686
|
-
~awaitable_thread()
|
687
|
-
{
|
688
|
-
if (bottom_of_stack_.valid())
|
689
|
-
{
|
690
|
-
// Coroutine "stack unwinding" must be performed through the executor.
|
691
|
-
auto* bottom_frame = bottom_of_stack_.frame_;
|
692
|
-
(post)(bottom_frame->u_.executor_,
|
693
|
-
[a = std::move(bottom_of_stack_)]() mutable
|
694
|
-
{
|
695
|
-
(void)awaitable<awaitable_thread_entry_point, Executor>(
|
696
|
-
std::move(a));
|
697
|
-
});
|
698
|
-
}
|
699
|
-
}
|
700
|
-
|
701
|
-
awaitable_frame<awaitable_thread_entry_point, Executor>* entry_point()
|
702
|
-
{
|
703
|
-
return bottom_of_stack_.frame_;
|
704
|
-
}
|
705
|
-
|
706
|
-
executor_type get_executor() const noexcept
|
707
|
-
{
|
708
|
-
return bottom_of_stack_.frame_->u_.executor_;
|
709
|
-
}
|
710
|
-
|
711
|
-
cancellation_state get_cancellation_state() const noexcept
|
712
|
-
{
|
713
|
-
return bottom_of_stack_.frame_->cancellation_state_;
|
714
|
-
}
|
715
|
-
|
716
|
-
void reset_cancellation_state()
|
717
|
-
{
|
718
|
-
bottom_of_stack_.frame_->cancellation_state_ =
|
719
|
-
cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_);
|
720
|
-
}
|
721
|
-
|
722
|
-
template <typename Filter>
|
723
|
-
void reset_cancellation_state(Filter&& filter)
|
724
|
-
{
|
725
|
-
bottom_of_stack_.frame_->cancellation_state_ =
|
726
|
-
cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_,
|
727
|
-
static_cast<Filter&&>(filter));
|
728
|
-
}
|
729
|
-
|
730
|
-
template <typename InFilter, typename OutFilter>
|
731
|
-
void reset_cancellation_state(InFilter&& in_filter,
|
732
|
-
OutFilter&& out_filter)
|
733
|
-
{
|
734
|
-
bottom_of_stack_.frame_->cancellation_state_ =
|
735
|
-
cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_,
|
736
|
-
static_cast<InFilter&&>(in_filter),
|
737
|
-
static_cast<OutFilter&&>(out_filter));
|
738
|
-
}
|
739
|
-
|
740
|
-
bool throw_if_cancelled() const
|
741
|
-
{
|
742
|
-
return bottom_of_stack_.frame_->throw_if_cancelled_;
|
743
|
-
}
|
744
|
-
|
745
|
-
void throw_if_cancelled(bool value)
|
746
|
-
{
|
747
|
-
bottom_of_stack_.frame_->throw_if_cancelled_ = value;
|
748
|
-
}
|
749
|
-
|
750
|
-
cancellation_slot_type get_cancellation_slot() const noexcept
|
751
|
-
{
|
752
|
-
return bottom_of_stack_.frame_->cancellation_state_.slot();
|
753
|
-
}
|
754
|
-
|
755
|
-
// Launch a new thread of execution.
|
756
|
-
void launch()
|
757
|
-
{
|
758
|
-
bottom_of_stack_.frame_->top_of_stack_->attach_thread(this);
|
759
|
-
pump();
|
760
|
-
}
|
761
|
-
|
762
|
-
protected:
|
763
|
-
template <typename> friend class awaitable_frame_base;
|
764
|
-
|
765
|
-
// Repeatedly resume the top stack frame until the stack is empty or until it
|
766
|
-
// has been transferred to another resumable_thread object.
|
767
|
-
void pump()
|
768
|
-
{
|
769
|
-
do
|
770
|
-
bottom_of_stack_.frame_->top_of_stack_->resume();
|
771
|
-
while (bottom_of_stack_.frame_ && bottom_of_stack_.frame_->top_of_stack_);
|
772
|
-
|
773
|
-
if (bottom_of_stack_.frame_)
|
774
|
-
{
|
775
|
-
awaitable<awaitable_thread_entry_point, Executor> a(
|
776
|
-
std::move(bottom_of_stack_));
|
777
|
-
a.frame_->rethrow_exception();
|
778
|
-
}
|
779
|
-
}
|
780
|
-
|
781
|
-
awaitable<awaitable_thread_entry_point, Executor> bottom_of_stack_;
|
782
|
-
};
|
783
|
-
|
784
|
-
template <typename Signature, typename Executor>
|
785
|
-
class awaitable_async_op_handler;
|
786
|
-
|
787
|
-
template <typename R, typename Executor>
|
788
|
-
class awaitable_async_op_handler<R(), Executor>
|
789
|
-
: public awaitable_thread<Executor>
|
790
|
-
{
|
791
|
-
public:
|
792
|
-
struct result_type {};
|
793
|
-
|
794
|
-
awaitable_async_op_handler(
|
795
|
-
awaitable_thread<Executor>* h, result_type&)
|
796
|
-
: awaitable_thread<Executor>(std::move(*h))
|
797
|
-
{
|
798
|
-
}
|
799
|
-
|
800
|
-
void operator()()
|
801
|
-
{
|
802
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
803
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
804
|
-
this->pump();
|
805
|
-
}
|
806
|
-
|
807
|
-
static void resume(result_type&)
|
808
|
-
{
|
809
|
-
}
|
810
|
-
};
|
811
|
-
|
812
|
-
template <typename R, typename Executor>
|
813
|
-
class awaitable_async_op_handler<R(boost::system::error_code), Executor>
|
814
|
-
: public awaitable_thread<Executor>
|
815
|
-
{
|
816
|
-
public:
|
817
|
-
typedef boost::system::error_code* result_type;
|
818
|
-
|
819
|
-
awaitable_async_op_handler(
|
820
|
-
awaitable_thread<Executor>* h, result_type& result)
|
821
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
822
|
-
result_(result)
|
823
|
-
{
|
824
|
-
}
|
825
|
-
|
826
|
-
void operator()(boost::system::error_code ec)
|
827
|
-
{
|
828
|
-
result_ = &ec;
|
829
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
830
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
831
|
-
this->pump();
|
832
|
-
}
|
833
|
-
|
834
|
-
static void resume(result_type& result)
|
835
|
-
{
|
836
|
-
throw_error(*result);
|
837
|
-
}
|
838
|
-
|
839
|
-
private:
|
840
|
-
result_type& result_;
|
841
|
-
};
|
842
|
-
|
843
|
-
template <typename R, typename Executor>
|
844
|
-
class awaitable_async_op_handler<R(std::exception_ptr), Executor>
|
845
|
-
: public awaitable_thread<Executor>
|
846
|
-
{
|
847
|
-
public:
|
848
|
-
typedef std::exception_ptr* result_type;
|
849
|
-
|
850
|
-
awaitable_async_op_handler(
|
851
|
-
awaitable_thread<Executor>* h, result_type& result)
|
852
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
853
|
-
result_(result)
|
854
|
-
{
|
855
|
-
}
|
856
|
-
|
857
|
-
void operator()(std::exception_ptr ex)
|
858
|
-
{
|
859
|
-
result_ = &ex;
|
860
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
861
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
862
|
-
this->pump();
|
863
|
-
}
|
864
|
-
|
865
|
-
static void resume(result_type& result)
|
866
|
-
{
|
867
|
-
if (*result)
|
868
|
-
{
|
869
|
-
std::exception_ptr ex = std::exchange(*result, nullptr);
|
870
|
-
std::rethrow_exception(ex);
|
871
|
-
}
|
872
|
-
}
|
873
|
-
|
874
|
-
private:
|
875
|
-
result_type& result_;
|
876
|
-
};
|
877
|
-
|
878
|
-
template <typename R, typename T, typename Executor>
|
879
|
-
class awaitable_async_op_handler<R(T), Executor>
|
880
|
-
: public awaitable_thread<Executor>
|
881
|
-
{
|
882
|
-
public:
|
883
|
-
typedef T* result_type;
|
884
|
-
|
885
|
-
awaitable_async_op_handler(
|
886
|
-
awaitable_thread<Executor>* h, result_type& result)
|
887
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
888
|
-
result_(result)
|
889
|
-
{
|
890
|
-
}
|
891
|
-
|
892
|
-
void operator()(T result)
|
893
|
-
{
|
894
|
-
result_ = &result;
|
895
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
896
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
897
|
-
this->pump();
|
898
|
-
}
|
899
|
-
|
900
|
-
static T resume(result_type& result)
|
901
|
-
{
|
902
|
-
return std::move(*result);
|
903
|
-
}
|
904
|
-
|
905
|
-
private:
|
906
|
-
result_type& result_;
|
907
|
-
};
|
908
|
-
|
909
|
-
template <typename R, typename T, typename Executor>
|
910
|
-
class awaitable_async_op_handler<R(boost::system::error_code, T), Executor>
|
911
|
-
: public awaitable_thread<Executor>
|
912
|
-
{
|
913
|
-
public:
|
914
|
-
struct result_type
|
915
|
-
{
|
916
|
-
boost::system::error_code* ec_;
|
917
|
-
T* value_;
|
918
|
-
};
|
919
|
-
|
920
|
-
awaitable_async_op_handler(
|
921
|
-
awaitable_thread<Executor>* h, result_type& result)
|
922
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
923
|
-
result_(result)
|
924
|
-
{
|
925
|
-
}
|
926
|
-
|
927
|
-
void operator()(boost::system::error_code ec, T value)
|
928
|
-
{
|
929
|
-
result_.ec_ = &ec;
|
930
|
-
result_.value_ = &value;
|
931
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
932
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
933
|
-
this->pump();
|
934
|
-
}
|
935
|
-
|
936
|
-
static T resume(result_type& result)
|
937
|
-
{
|
938
|
-
throw_error(*result.ec_);
|
939
|
-
return std::move(*result.value_);
|
940
|
-
}
|
941
|
-
|
942
|
-
private:
|
943
|
-
result_type& result_;
|
944
|
-
};
|
945
|
-
|
946
|
-
template <typename R, typename T, typename Executor>
|
947
|
-
class awaitable_async_op_handler<R(std::exception_ptr, T), Executor>
|
948
|
-
: public awaitable_thread<Executor>
|
949
|
-
{
|
950
|
-
public:
|
951
|
-
struct result_type
|
952
|
-
{
|
953
|
-
std::exception_ptr* ex_;
|
954
|
-
T* value_;
|
955
|
-
};
|
956
|
-
|
957
|
-
awaitable_async_op_handler(
|
958
|
-
awaitable_thread<Executor>* h, result_type& result)
|
959
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
960
|
-
result_(result)
|
961
|
-
{
|
962
|
-
}
|
963
|
-
|
964
|
-
void operator()(std::exception_ptr ex, T value)
|
965
|
-
{
|
966
|
-
result_.ex_ = &ex;
|
967
|
-
result_.value_ = &value;
|
968
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
969
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
970
|
-
this->pump();
|
971
|
-
}
|
972
|
-
|
973
|
-
static T resume(result_type& result)
|
974
|
-
{
|
975
|
-
if (*result.ex_)
|
976
|
-
{
|
977
|
-
std::exception_ptr ex = std::exchange(*result.ex_, nullptr);
|
978
|
-
std::rethrow_exception(ex);
|
979
|
-
}
|
980
|
-
return std::move(*result.value_);
|
981
|
-
}
|
982
|
-
|
983
|
-
private:
|
984
|
-
result_type& result_;
|
985
|
-
};
|
986
|
-
|
987
|
-
template <typename R, typename... Ts, typename Executor>
|
988
|
-
class awaitable_async_op_handler<R(Ts...), Executor>
|
989
|
-
: public awaitable_thread<Executor>
|
990
|
-
{
|
991
|
-
public:
|
992
|
-
typedef std::tuple<Ts...>* result_type;
|
993
|
-
|
994
|
-
awaitable_async_op_handler(
|
995
|
-
awaitable_thread<Executor>* h, result_type& result)
|
996
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
997
|
-
result_(result)
|
998
|
-
{
|
999
|
-
}
|
1000
|
-
|
1001
|
-
template <typename... Args>
|
1002
|
-
void operator()(Args&&... args)
|
1003
|
-
{
|
1004
|
-
std::tuple<Ts...> result(std::forward<Args>(args)...);
|
1005
|
-
result_ = &result;
|
1006
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
1007
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
1008
|
-
this->pump();
|
1009
|
-
}
|
1010
|
-
|
1011
|
-
static std::tuple<Ts...> resume(result_type& result)
|
1012
|
-
{
|
1013
|
-
return std::move(*result);
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
private:
|
1017
|
-
result_type& result_;
|
1018
|
-
};
|
1019
|
-
|
1020
|
-
template <typename R, typename... Ts, typename Executor>
|
1021
|
-
class awaitable_async_op_handler<R(boost::system::error_code, Ts...), Executor>
|
1022
|
-
: public awaitable_thread<Executor>
|
1023
|
-
{
|
1024
|
-
public:
|
1025
|
-
struct result_type
|
1026
|
-
{
|
1027
|
-
boost::system::error_code* ec_;
|
1028
|
-
std::tuple<Ts...>* value_;
|
1029
|
-
};
|
1030
|
-
|
1031
|
-
awaitable_async_op_handler(
|
1032
|
-
awaitable_thread<Executor>* h, result_type& result)
|
1033
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
1034
|
-
result_(result)
|
1035
|
-
{
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
template <typename... Args>
|
1039
|
-
void operator()(boost::system::error_code ec, Args&&... args)
|
1040
|
-
{
|
1041
|
-
result_.ec_ = &ec;
|
1042
|
-
std::tuple<Ts...> value(std::forward<Args>(args)...);
|
1043
|
-
result_.value_ = &value;
|
1044
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
1045
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
1046
|
-
this->pump();
|
1047
|
-
}
|
1048
|
-
|
1049
|
-
static std::tuple<Ts...> resume(result_type& result)
|
1050
|
-
{
|
1051
|
-
throw_error(*result.ec_);
|
1052
|
-
return std::move(*result.value_);
|
1053
|
-
}
|
1054
|
-
|
1055
|
-
private:
|
1056
|
-
result_type& result_;
|
1057
|
-
};
|
1058
|
-
|
1059
|
-
template <typename R, typename... Ts, typename Executor>
|
1060
|
-
class awaitable_async_op_handler<R(std::exception_ptr, Ts...), Executor>
|
1061
|
-
: public awaitable_thread<Executor>
|
1062
|
-
{
|
1063
|
-
public:
|
1064
|
-
struct result_type
|
1065
|
-
{
|
1066
|
-
std::exception_ptr* ex_;
|
1067
|
-
std::tuple<Ts...>* value_;
|
1068
|
-
};
|
1069
|
-
|
1070
|
-
awaitable_async_op_handler(
|
1071
|
-
awaitable_thread<Executor>* h, result_type& result)
|
1072
|
-
: awaitable_thread<Executor>(std::move(*h)),
|
1073
|
-
result_(result)
|
1074
|
-
{
|
1075
|
-
}
|
1076
|
-
|
1077
|
-
template <typename... Args>
|
1078
|
-
void operator()(std::exception_ptr ex, Args&&... args)
|
1079
|
-
{
|
1080
|
-
result_.ex_ = &ex;
|
1081
|
-
std::tuple<Ts...> value(std::forward<Args>(args)...);
|
1082
|
-
result_.value_ = &value;
|
1083
|
-
this->entry_point()->top_of_stack_->attach_thread(this);
|
1084
|
-
this->entry_point()->top_of_stack_->clear_cancellation_slot();
|
1085
|
-
this->pump();
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
static std::tuple<Ts...> resume(result_type& result)
|
1089
|
-
{
|
1090
|
-
if (*result.ex_)
|
1091
|
-
{
|
1092
|
-
std::exception_ptr ex = std::exchange(*result.ex_, nullptr);
|
1093
|
-
std::rethrow_exception(ex);
|
1094
|
-
}
|
1095
|
-
return std::move(*result.value_);
|
1096
|
-
}
|
1097
|
-
|
1098
|
-
private:
|
1099
|
-
result_type& result_;
|
1100
|
-
};
|
1101
|
-
|
1102
|
-
template <typename Signature, typename Op, typename Executor>
|
1103
|
-
class awaitable_async_op
|
1104
|
-
{
|
1105
|
-
public:
|
1106
|
-
typedef awaitable_async_op_handler<Signature, Executor> handler_type;
|
1107
|
-
|
1108
|
-
awaitable_async_op(Op&& o, awaitable_frame_base<Executor>* frame
|
1109
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1110
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1111
|
-
, const detail::source_location& location
|
1112
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1113
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1114
|
-
)
|
1115
|
-
: op_(std::forward<Op>(o)),
|
1116
|
-
frame_(frame),
|
1117
|
-
result_()
|
1118
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1119
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1120
|
-
, location_(location)
|
1121
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1122
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1123
|
-
{
|
1124
|
-
}
|
1125
|
-
|
1126
|
-
bool await_ready() const noexcept
|
1127
|
-
{
|
1128
|
-
return false;
|
1129
|
-
}
|
1130
|
-
|
1131
|
-
void await_suspend(coroutine_handle<void>)
|
1132
|
-
{
|
1133
|
-
frame_->after_suspend(
|
1134
|
-
[](void* arg)
|
1135
|
-
{
|
1136
|
-
awaitable_async_op* self = static_cast<awaitable_async_op*>(arg);
|
1137
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1138
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1139
|
-
BOOST_ASIO_HANDLER_LOCATION((self->location_.file_name(),
|
1140
|
-
self->location_.line(), self->location_.function_name()));
|
1141
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1142
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1143
|
-
std::forward<Op&&>(self->op_)(
|
1144
|
-
handler_type(self->frame_->detach_thread(), self->result_));
|
1145
|
-
}, this);
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
auto await_resume()
|
1149
|
-
{
|
1150
|
-
return handler_type::resume(result_);
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
private:
|
1154
|
-
Op&& op_;
|
1155
|
-
awaitable_frame_base<Executor>* frame_;
|
1156
|
-
typename handler_type::result_type result_;
|
1157
|
-
#if defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1158
|
-
# if defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1159
|
-
detail::source_location location_;
|
1160
|
-
# endif // defined(BOOST_ASIO_HAS_SOURCE_LOCATION)
|
1161
|
-
#endif // defined(BOOST_ASIO_ENABLE_HANDLER_TRACKING)
|
1162
|
-
};
|
1163
|
-
|
1164
|
-
} // namespace detail
|
1165
|
-
} // namespace asio
|
1166
|
-
} // namespace boost
|
1167
|
-
|
1168
|
-
#if !defined(GENERATING_DOCUMENTATION)
|
1169
|
-
# if defined(BOOST_ASIO_HAS_STD_COROUTINE)
|
1170
|
-
|
1171
|
-
namespace std {
|
1172
|
-
|
1173
|
-
template <typename T, typename Executor, typename... Args>
|
1174
|
-
struct coroutine_traits<boost::asio::awaitable<T, Executor>, Args...>
|
1175
|
-
{
|
1176
|
-
typedef boost::asio::detail::awaitable_frame<T, Executor> promise_type;
|
1177
|
-
};
|
1178
|
-
|
1179
|
-
} // namespace std
|
1180
|
-
|
1181
|
-
# else // defined(BOOST_ASIO_HAS_STD_COROUTINE)
|
1182
|
-
|
1183
|
-
namespace std { namespace experimental {
|
1184
|
-
|
1185
|
-
template <typename T, typename Executor, typename... Args>
|
1186
|
-
struct coroutine_traits<boost::asio::awaitable<T, Executor>, Args...>
|
1187
|
-
{
|
1188
|
-
typedef boost::asio::detail::awaitable_frame<T, Executor> promise_type;
|
1189
|
-
};
|
1190
|
-
|
1191
|
-
}} // namespace std::experimental
|
1192
|
-
|
1193
|
-
# endif // defined(BOOST_ASIO_HAS_STD_COROUTINE)
|
1194
|
-
#endif // !defined(GENERATING_DOCUMENTATION)
|
1195
|
-
|
1196
|
-
#include <boost/asio/detail/pop_options.hpp>
|
1197
|
-
|
1198
|
-
#endif // BOOST_ASIO_IMPL_AWAITABLE_HPP
|