commit | 60c589dd62a01230dc585c30b987f702e8ec2a98 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Tue Mar 23 15:14:57 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 23 15:14:57 2021 +0000 |
tree | d8039a1ffb11378c74b2287a975c5dec58c4c672 | |
parent | 3c30a04ccdc0cb1cb77564c20f070943979a650b [diff] | |
parent | 769fe94c5151fc3580e2624f0dec49ac83163935 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/thread_local am: eedd71f3ab am: a2b6c5c34c am: 769fe94c51 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1649177 Change-Id: Icd7e2c7183181d994a7af7de7cbd9da3beea6a1f
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.