commit | f9dadd41ff646d10e372ba4b993fe5979e3ca1a0 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Jul 16 16:27:47 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Thu Jul 16 16:33:31 2020 -0700 |
tree | e53d777a5722b1c8f2378fcf93b8efbbb739f78f | |
parent | b69fecd4a1853d75ed455a17516c4db82ef5ad14 [diff] |
Add rust_test and update TEST_MAPPING Test: atest -c --include-subdirs external/rust/crates Change-Id: I3666fe3a0209e58b71604599a3e29a87614d1777
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.