commit | 6b6b9af4c41070a53d804bdd2f0b652e4c343dda | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Jul 21 20:21:07 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 21 20:21:07 2020 +0000 |
tree | e53d777a5722b1c8f2378fcf93b8efbbb739f78f | |
parent | a6a50889e525e5dc33dc37bdba4a20e9589db35d [diff] | |
parent | f9dadd41ff646d10e372ba4b993fe5979e3ca1a0 [diff] |
Add rust_test and update TEST_MAPPING am: f9dadd41ff Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1365223 Change-Id: I635eea25fc53e0b5154d2ffabc6c48ac5ac8e45a
This library provides the ThreadLocal
and CachedThreadLocal
types 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;
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.