Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce spawn_detached(sender, scope, allocator) #470

Merged
merged 3 commits into from
Oct 13, 2022

Commits on Oct 12, 2022

  1. Introduce spawn_detached(sender, scope, allocator)

    This diff introduces a new algorithm, `unifex::spawn_detached()`.
    `spawn_detached` takes a sender, an "async scope", and an optional
    allocator.  It nests the sender in the scope with `unifex::nest`,
    allocates and operation state using the allocator, and starts that
    operation.  The given async scope may be anything that `nest()`
    supports, which currently includes both `v1::async_scope` and
    `v2::async_scope`.
    ispeters committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    7ad8ba5 View commit details
    Browse the repository at this point in the history
  2. Fix spawn_detached_test.cpp

    I had an unused capture that was breaking Clang builds.
    ispeters committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    8645fbe View commit details
    Browse the repository at this point in the history
  3. Make throwing test case conditional on UNIFEX_NO_EXCEPTIONS

    In case we ever support `-fno-exceptions` in our CI, make the throwing
    test case in `spawn_detached_test.cpp` only exist when exceptions are
    enabled.
    ispeters committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    758ace6 View commit details
    Browse the repository at this point in the history