2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-19 04:02:09 +00:00

2376 Commits

Author SHA1 Message Date
Christopher Kohlhoff
a1e7ad07c9 Add missing noreturn attribute to throw_exception. 2025-08-05 08:09:27 +10:00
Christopher Kohlhoff
7e51960177 Make co_spawn adhere to async op requirement for non-reentrant completion.
Previously, co_spawn-ing the following coroutine:

  awaitable<void> foo()
  {
    co_await dispatch(use_awaitable);
  }

would result in a call to the completion handler from within co_spawn.
2025-08-05 08:09:27 +10:00
Christopher Kohlhoff
419a06e978 Restore "own thread" support in scheduler.
This is still required when the scheduler is used as a lazily
initialised service.
2025-08-05 08:09:27 +10:00
Christopher Kohlhoff
6a448ba050 Version bump. 2025-07-09 21:30:39 +10:00
Christopher Kohlhoff
24d13e8270 Revision history. 2025-07-09 21:29:02 +10:00
Christopher Kohlhoff
f8aed31b15 Regenerate documentation. 2025-07-09 20:50:16 +10:00
Christopher Kohlhoff
4824c0b3ce Fix shadow variable warnings. 2025-07-09 09:13:26 +10:00
Christopher Kohlhoff
751cec5701 Make BOOST_ASIO_CONCURRENCY_HINT_SAFE consistent with io_context default constructor.
Also fixed docs for BOOST_ASIO_CONCURRENCY_HINT_UNSAFE_IO to reflect
that registration locking is still enabled.
2025-07-09 09:12:53 +10:00
Christopher Kohlhoff
a55928d4d5 Fix conflicting pipe name in independent plug-in DLLs.
Added a numerical representation of a local static variable's address to
the pipe name, to discriminate asio instances in independent DLLs.
2025-07-08 09:06:09 +10:00
Christopher Kohlhoff
be4af2d923 Add separate build targets for optional dependencies. 2025-07-08 09:06:09 +10:00
Christopher Kohlhoff
3af71e965c Fix build error in serialization example. 2025-07-07 21:07:45 +10:00
Christopher Kohlhoff
cb99678035 Remove deadline_timer and time_traits from the convenience header. 2025-07-07 20:44:27 +10:00
Christopher Kohlhoff
967f6824ef Fix boostification damage. 2025-07-03 08:50:49 +10:00
Christopher Kohlhoff
9e11596f81 Allow async_resolve to use a configurable number of internal threads.
The number of threads used to emulate asynchronous address resolution is
now adjustable via the "resolver" / "threads" configuration option. If
this is set to a non-zero value, that number of threads will be created
when the first resolver object is constructed. Otherwise, it defaults to
a single thread that is created on the first call to async_resolve.
2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
cd0a9eb990 Remove unused scheduler data members. 2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
a50d0e7246 Use execution_context allocator in timer queues.
Added new configuration parameter "timer" / "heap_reserve" that may be
used to reserve space in the vector used for a timer queue's heap.
2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
9541d6a3a3 Extend allocation example to cover execution_context allocation. 2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
d26f76aced Use execution_context allocator for object pooling in reactors. 2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
b73da48d50 Use execution_context allocator in strand implementation. 2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
6b4bcb9dd3 Add allocator support to execution contexts. 2025-07-02 20:43:27 +10:00
Christopher Kohlhoff
62864c570a Version bump. 2025-04-02 23:31:19 +11:00
Christopher Kohlhoff
46efdf66be Revision history. 2025-04-02 23:31:14 +11:00
Christopher Kohlhoff
e0999c67fc Regenerate documentation. 2025-04-02 23:31:09 +11:00
Christopher Kohlhoff
960482db0f Fix broken links in documentation. 2025-04-02 23:30:56 +11:00
Christopher Kohlhoff
6dad896196 Add runtime configuration options to the overview. 2025-04-02 21:22:57 +11:00
Christopher Kohlhoff
0f309bb273 Update use of deferred in overview. 2025-04-01 22:02:47 +11:00
Christopher Kohlhoff
882f4631f9 Fix ambiguous overloads when using std::span with asio::buffer. 2025-04-01 22:02:47 +11:00
Christopher Kohlhoff
a8ac04d8d6 Update async_result documentation to reflect current type requirements. 2025-04-01 22:02:47 +11:00
Christopher Kohlhoff
2af02fa2c8 Version bump. 2025-03-05 23:03:22 +11:00
Christopher Kohlhoff
726fdd4d69 Revision history. 2025-03-05 23:02:50 +11:00
Christopher Kohlhoff
b78feea7ee Add missing header. 2025-03-04 23:41:14 +11:00
Christopher Kohlhoff
84e36b57ac Fix signed/unsigned warning. 2025-03-04 23:04:12 +11:00
Christopher Kohlhoff
30b5974ed3 Fix uninitialised member in thread_pool default constructor. 2025-03-04 23:03:59 +11:00
Christopher Kohlhoff
391c3d116f Clear errno before strtoll/strtoull. 2025-03-04 23:03:42 +11:00
Christopher Kohlhoff
acbf6b48f6 Fix buffer sizing for config. 2025-03-04 23:03:29 +11:00
Christopher Kohlhoff
541ca0f9d0 Remove #defines left behind after removal of const/mutable_buffers_1. 2025-03-04 23:03:13 +11:00
Christopher Kohlhoff
4bfea2a20c Add missing noexcept qualifiers on local::basic_endpoint.
Make it consistent with ip::basic_endpoint.
2025-03-04 23:02:59 +11:00
Christopher Kohlhoff
248cae0100 Mark failed internal descriptor for not being re-registered after fork.
If adding an (internal) descriptor to epoll fails, mark it for not being
re-registered after fork (this would throw an exception).

During the prepare phase of notify_fork() the io_uring service
(re)registers its eventfd operation with the epoll reactor. As the
eventfd descriptor is already registered, EPOLL_CTL_ADD fails with
EEXIST (which is ignored here). During re-registration after the fork,
epoll (again) refuses the 2nd registration of the epoll descriptor and
the child crashes because of an exception.
2025-03-04 23:02:45 +11:00
Christopher Kohlhoff
347fe3b67f In ranged parallel_group, store range.size() before forwarding range. 2025-03-04 23:02:22 +11:00
Christopher Kohlhoff
ae15c0809a Correct default template type of promise_handler. 2025-03-04 23:02:08 +11:00
Christopher Kohlhoff
ffc3352c15 Clarify file_base::flags usage when opening a file. 2025-03-04 23:01:52 +11:00
Christopher Kohlhoff
1afbc5c12b Update copyright notices. 2025-03-04 22:57:26 +11:00
Christopher Kohlhoff
58f8081ff9 Version bump. 2024-12-04 21:53:26 +11:00
Christopher Kohlhoff
d1f9d7442e Revision history. 2024-12-04 21:52:37 +11:00
Christopher Kohlhoff
d09bdb6236 Regenerate documentation. 2024-12-04 20:35:54 +11:00
Christopher Kohlhoff
0ca957b83a Remove unused variables in unit test. 2024-12-03 08:40:43 +11:00
Christopher Kohlhoff
d9dfd44256 Fix ambiguous overloads error with clang 19. 2024-12-03 08:40:25 +11:00
Christopher Kohlhoff
6169ff92cb Use snprintf instead of sprintf in example. 2024-12-03 08:40:02 +11:00
Christopher Kohlhoff
54b527c853 Use -1 as correct offset for io_uring_prep_write_fixed/io_uring_prep_read_fixed. 2024-12-03 08:39:52 +11:00
Christopher Kohlhoff
7e5ab33105 Fix spelling errors. 2024-12-03 08:39:39 +11:00