commit | 6280b2198d212837c6846d92d87b5fe9138dd5ff | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jul 07 00:35:20 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 00:35:20 2020 +0000 |
tree | adc522b01e312ba50862f765f1fe10c6ba88eea1 | |
parent | c5c8a04104544a2aa9b827780f7fa213f810ae2e [diff] | |
parent | 33c60130a134345d90af4d55ce452123907a0e0e [diff] |
Support building all variants. am: 33c60130a1 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1356134 Change-Id: I183ff7e7f66ef6260f90393b3992ed2a7605e97c
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.