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

Support spawning asynchronous tasks #212

Merged
merged 16 commits into from
Feb 26, 2017
Merged

Support spawning asynchronous tasks #212

merged 16 commits into from
Feb 26, 2017

Commits on Feb 26, 2017

  1. introduce panic_handler to allow control for random panics

    For now, we abort in various anomalous scenarios. This is likely not the
    right default.
    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    0c66aae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    efc4509 View commit details
    Browse the repository at this point in the history
  3. add Registry::current() method (also current_num_threads())

    This fixes a latent bug in the splitting code for the parallel iterator,
    which would have grabbed the wrong number of threads if we were working
    inside a custom threadpool.
    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    56a9367 View commit details
    Browse the repository at this point in the history
  4. add the ability to increment the terminate counter explicitly

    This will be useful when we permit spawning async jobs.
    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    b86f69a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55471eb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8ad45a3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fe79ee5 View commit details
    Browse the repository at this point in the history
  8. move future support out of ::scope and into ::future

    It is no longer dependent on scope, and instead serves a cross-cutting
    role.
    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    d609749 View commit details
    Browse the repository at this point in the history
  9. remove outdated unsafe blocks from future and tweak docs, exports

    The unsafe keyword was not needed, because the safety is implied
    by the unsafe trait `FutureScope`.
    
    The `future` module now re-exports the relevant parts of `futures` crate
    for convenience in the rest of Rayon.
    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    651db80 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c6d69a3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    47ccb54 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3562ac9 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4d90b17 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7281bb4 View commit details
    Browse the repository at this point in the history
  15. add missing export

    nikomatsakis committed Feb 26, 2017
    Configuration menu
    Copy the full SHA
    e0f54f1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3d2f85c View commit details
    Browse the repository at this point in the history