]> git.lizzy.rs Git - rust.git/commit
Auto merge of #24447 - alexcrichton:audit-thread, r=aturon
authorbors <bors@rust-lang.org>
Wed, 22 Apr 2015 18:48:31 +0000 (18:48 +0000)
committerbors <bors@rust-lang.org>
Wed, 22 Apr 2015 18:48:31 +0000 (18:48 +0000)
commit5c9636975cdc289e98ef8f33400969371c4ce1bf
tree28e75d58061a77b9a1d6c6f3c0853473c52169c5
parent3dbfa74305e6cc347ffdd902a680bb3b9ee2470a
parent2e1100997863c4951371cf39554c53266cacb37d
Auto merge of #24447 - alexcrichton:audit-thread, r=aturon

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 #24442