commit | a229492fcb6349798934b5be2faa821ea97dc29a | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Mar 11 02:05:11 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Mar 11 02:05:11 2021 +0000 |
tree | 9f6371be9a50826bf2dac84f8799c0ed7a61b536 | |
parent | 350ea0cd1e624014a0c02f262b31c1bfc8ff9396 [diff] | |
parent | 3c30a04ccdc0cb1cb77564c20f070943979a650b [diff] |
Snap for 7199033 from 3c30a04ccdc0cb1cb77564c20f070943979a650b to sc-d1-release Change-Id: I46bcec701545400063b3baa33f0802b24a995852
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.