commit | 1eff01d56e9772e8a82198ea18b1adbe9f2f2a9d | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Jul 21 21:28:19 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 21 21:28:19 2020 +0000 |
tree | e53d777a5722b1c8f2378fcf93b8efbbb739f78f | |
parent | aade2ba23036781b2eef3bdf898411fe3cd9f717 [diff] | |
parent | b59e6de7ef1b7dc75d8f98dad415fa6c4f247ef8 [diff] |
Add rust_test and update TEST_MAPPING am: f9dadd41ff am: 6b6b9af4c4 am: cf9eabb1ba am: 83ce8101ad am: b59e6de7ef Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1365223 Change-Id: I3da9f5e646caf8af71af41f2ecb137add8c80889
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.