commit | 89f8dc85aacb5b69bc347faf258ad9e679c5ff25 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Feb 17 04:04:54 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Feb 17 04:04:54 2021 +0000 |
tree | 9d9ec033a467fa5d438d16ce02397d0d53646335 | |
parent | d046d679b6b907212e47164985ccd03badcdc1d8 [diff] | |
parent | bcd9298389d050790c8795cc5276dde44dff90ab [diff] |
Snap for 7150039 from bcd9298389d050790c8795cc5276dde44dff90ab to tm-release Change-Id: I00706f70d0429ccc2f8278fb7ca7728f6cdbd6ee
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.0"
and this to your crate root:
extern crate thread_local;
This crate's minimum supported Rust version (MSRV) is 1.28.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.