about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-14 22:13:57 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-22 10:42:33 -0700
commit2e1100997863c4951371cf39554c53266cacb37d (patch)
treee4d266578d80fa55705ba349c4508191fd5a692b /src/libstd/sync
parente9e9279d87d5786fcb8e12482f2920979602267b (diff)
downloadrust-2e1100997863c4951371cf39554c53266cacb37d.tar.gz
rust-2e1100997863c4951371cf39554c53266cacb37d.zip
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 #24442
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions