commit | 170b29c2ad98c1dd189ddb5ba303599b3890871b | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 09:44:15 2020 -0700 |
committer | Xin Li <delphij@google.com> | Thu Aug 27 09:44:15 2020 -0700 |
tree | e53d777a5722b1c8f2378fcf93b8efbbb739f78f | |
parent | 6b6b9af4c41070a53d804bdd2f0b652e4c343dda [diff] | |
parent | 39f90d5c0be831302dd277e21f290b74759191d1 [diff] |
Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged Bug: 166295507 Merged-In: I2f1204cc8a4aca48eaef99ef17768a9dfa3b79ee Change-Id: I6796bf1222a99cedb2f7f6f03b8834cbad118d3e
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.