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: EnterGuard should not be Send #5766

Merged
merged 1 commit into from
Jun 5, 2023
Merged

rt: EnterGuard should not be Send #5766

merged 1 commit into from
Jun 5, 2023

Commits on Jun 5, 2023

  1. rt: EnterGuard should not be Send

    Removes `Send` from `EnterGuard` (returned by `Handle::enter()`. The
    guard type changes a thread-local variable on drop. If the guard is
    moved to a different thread, it would modify the wrong thread-local.
    
    This is a **breaking change** but it fixes a bug and prevents incorrect
    user behavior. If user code breaks because of this, it is because they
    (most likely) have a bug in their code.
    carllerche committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    b54369e View commit details
    Browse the repository at this point in the history