commit | eedd71f3ab1d4f274d59c9036b60183d425bf21a | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Mar 17 12:53:21 2021 -0700 |
committer | Bob Badour <bbadour@google.com> | Wed Mar 17 12:53:21 2021 -0700 |
tree | d8039a1ffb11378c74b2287a975c5dec58c4c672 | |
parent | f167c5fc4cf8b8194bea284f8aff1d27a3e49d92 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/thread_local Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I246ad49e26852b9449f6709972f36a2491add234
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.