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 ThreadPool::broadcast #492

Merged
merged 6 commits into from
Nov 16, 2022
Merged

Add ThreadPool::broadcast #492

merged 6 commits into from
Nov 16, 2022

Commits on Nov 16, 2022

  1. Add ThreadPool::broadcast

    A broadcast runs the closure on every thread in the pool, then collects
    the results.  It's scheduled somewhat like a very soft interrupt -- it
    won't preempt a thread's local work, but will run before it goes to
    steal from any other threads.
    
    This can be used when you want to precisely split your work per-thread,
    or to set or retrieve some thread-local data in the pool, e.g. rayon-rs#483.
    cuviper committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    eb6c6ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    817c4cc View commit details
    Browse the repository at this point in the history
  3. Add Scope::spawn_broadcast

    cuviper committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    c7a3172 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    812ca02 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd7b61c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9ef85cd View commit details
    Browse the repository at this point in the history