about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-22 18:48:31 +0000
committerbors <bors@rust-lang.org>2015-04-22 18:48:31 +0000
commit5c9636975cdc289e98ef8f33400969371c4ce1bf (patch)
tree28e75d58061a77b9a1d6c6f3c0853473c52169c5 /src/libstd/sync
parent3dbfa74305e6cc347ffdd902a680bb3b9ee2470a (diff)
parent2e1100997863c4951371cf39554c53266cacb37d (diff)
downloadrust-5c9636975cdc289e98ef8f33400969371c4ce1bf.tar.gz
rust-5c9636975cdc289e98ef8f33400969371c4ce1bf.zip
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
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions