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

Add support for scoped threads #312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 19, 2023

  1. Add support for scoped threads

    Add loom::thread::scope to mirror std::thread::scope provided by the
    standard library.
    akonradi committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    2762cc0 View commit details
    Browse the repository at this point in the history
  2. Fix thread::scope result drop order bug

    Fix a bug with thread::scope where the result of a spawned thread was being
    saved even when the scoped thread's handle had been dropped. This was
    causing the result to be dropped after the spawned thread was "finished",
    which was after the point at which the call to thread::scope had already
    completed. Add a regression test for this behavior.
    akonradi committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    ae21d3d View commit details
    Browse the repository at this point in the history