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

std: Audit std::thread implementations #24447

Merged
merged 1 commit into from Apr 22, 2015

Commits on Apr 22, 2015

  1. std: Audit std::thread implementations

    Much of this code hasn't been updated in quite some time and this commit does a
    small audit of the functionality:
    
    * Implementation functions now centralize all functionality on a locally defined
      `Thread` type.
    * The `detach` method has been removed in favor of a `Drop` implementation. This
      notably fixes leaking thread handles on Windows.
    * The `Thread` structure is now appropriately annotated with `Send` and `Sync`
      automatically on Windows and in a custom fashion on Unix.
    * The unsafety of creating a thread has been pushed out to the right boundaries
      now.
    
    Closes rust-lang#24442
    alexcrichton committed Apr 22, 2015
    Configuration menu
    Copy the full SHA
    2e11009 View commit details
    Browse the repository at this point in the history