commit | 91b2cf40d1f85ab2ecc60a23d387486de7809c5a | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 21:14:43 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 21:14:43 2020 -0700 |
tree | e689f8e4822d8e898501f577e3329345af52521e | |
parent | 55629747c3beca7abbdd157e757f695a7afa3731 [diff] |
Add Android.bp Test: make Bug: 152884384 Change-Id: I1e0aec9e8891b41e72437608658c17bfe82265bb
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.