Skip to content

v0.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 15:07
7a28bb5

Added

  • io_status::kind::unknown #444 @jbaldwin
  • This changelog #465 @PyXiion
  • Release workflow that publishes a GitHub release with notes from this changelog when a vX.Y.Z tag is pushed #465 @PyXiion

Changed

  • coro::scheduler no longer takes a lock when scheduling or resuming tasks; they are enqueued on an atomic waiter list and run in order. Directly resumed std::coroutine_handle<>s allocate a schedule_operation, co_awaited tasks do not. Operations with timeouts via poll_info still use a global lock #444 @jbaldwin
  • -Wall, -Wextra and /W4 are now private to the project instead of being propagated to consumers #457 @daantimmer
  • Removed the -pipe compile flag #456 @jbaldwin
  • Breaking: coro::thread_pool now uses per-worker LIFO queues with work stealing instead of one shared FIFO queue, so recursive fork-join workloads run depth first and use far less memory (nqueens peak RSS 5.66 GiB -> 11 MiB). External submissions, resume(), yield() and spawn_* still use the shared FIFO queue, which workers check periodically to avoid starvation #460 @PyXiion
  • Breaking: schedule() called from a pool worker now runs local work in LIFO order; use yield() to give other queued tasks a turn #460 @PyXiion
  • Breaking: coro::scheduler::process_events() now returns bool #460 @PyXiion
  • thread_pool shutdown rejects new publications and drains accepted resumptions. Tasks suspended on external events must be joined before shutting down the pool #460 @PyXiion

Removed

  • Breaking: thread_pool::size(), thread_pool::queue_size() and scheduler::size(). Use empty() where available #460 @PyXiion

Fixed

  • coro::task_group no longer blocks forever when awaited without any tasks having been started #451 @ripose-jp
  • Android CI uses android-actions/setup-android@v4 #463 @jbaldwin
  • coro::scheduler::poll() no longer leaves a poll registration behind after returning, which let a later event make the event loop read a freed poll_info. Registrations, including the stop token's pipe, are now removed only after the coroutine has suspended, for both epoll and kqueue #462 @Sola1Go @PyXiion @jbaldwin