commit | a8fb13c4771a27b1b0774be9319b874b96471254 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Mar 11 04:05:18 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Mar 11 04:05:18 2021 +0000 |
tree | 9f6371be9a50826bf2dac84f8799c0ed7a61b536 | |
parent | c76b3ce155e0da08ef04925f69a34ea8e1d48ee0 [diff] | |
parent | e3e24e0b7def45310500ff697a1f5e5eccd9e52a [diff] |
Snap for 7199154 from e3e24e0b7def45310500ff697a1f5e5eccd9e52a to tm-release Change-Id: I07c819168eb6e7a46f4757943f0770a8ca405184
This library provides the ThreadLocal
type which allow a separate copy of an object to be used for each thread. This allows for per-object thread-local storage, unlike the standard library's thread_local!
macro which only allows static thread-local storage.
Add this to your Cargo.toml
:
[dependencies] thread_local = "1.1"
This crate's minimum supported Rust version (MSRV) is 1.36.0.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.