commit | 939b59029130b3d81f3117760d6c7ce066094821 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jul 07 01:45:40 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 01:45:40 2020 +0000 |
tree | adc522b01e312ba50862f765f1fe10c6ba88eea1 | |
parent | b7369d012769c8dacdeea4f04936c5e174f1770c [diff] | |
parent | 2489ae71dd57f8d90c0195e8b17eb4f773d5b5a8 [diff] |
Support building all variants. am: 33c60130a1 am: 6280b2198d am: 647b62e549 am: 2489ae71dd Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1356134 Change-Id: I74451645846547b3a1b5230321abd91ed6b95aaf
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.