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

rt: add runtime::context to unify thread-locals #5143

Merged
merged 3 commits into from Oct 31, 2022
Merged

Commits on Oct 29, 2022

  1. rt: add runtime::context to unify thread-locals

    This patch is the first step towards unifying all the thread-local
    variables spread out across Tokio. A new `Context` struct is added which
    will be used to replace the various thread-locals that exist today.
    
    Initially, `Context` only holds the current runtime handle and the
    random number generator. Further PRs will add other thread-local state.
    
    A previous PR removed `runtime::context`. At that time,
    `runtime::context` was used as an extra layer to access the various
    runtime driver handles. This version of `runtime::context` serves a
    different purpose (unifying all the thread-locals).
    carllerche committed Oct 29, 2022
    Copy the full SHA
    30b3ad4 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2022

  1. fix doc links

    carllerche committed Oct 30, 2022
    Copy the full SHA
    6d04f40 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    d40fbc2 View commit details
    Browse the repository at this point in the history