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

Guard run_executor of local_pool.rs against use of park / unpark in user-code. #2010

Merged
merged 2 commits into from
Dec 26, 2019

Commits on Dec 19, 2019

  1. Guard run_executor against use of park/unpark in user-code.

    If user code that is run as a result of polling the futures
    in the `run_executor` loop of `local_pool.rs` makes use of
    the park / unpark APIs, execution may stall due to wakeups
    getting "lost". This is prevented (and thereby unnecessary
    calls to park / unpark avoided) through an additional
    `AtomicBool` that is in full control of the code in
    `local_pool.rs`.
    Roman S. Borschel committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    42be3f5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    348f03a View commit details
    Browse the repository at this point in the history