commit | c0189f5fb6de151e4ed0f601df7e625d4d0bee02 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Aug 25 07:56:04 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Aug 25 07:56:04 2022 +0000 |
tree | 5ea8d132ab05426361c61684f35300352fd05ad1 | |
parent | 98df20a8d8e3fd796a9a671ab69c2ecea5ce6040 [diff] | |
parent | cfb1a4bc37a7d8f509e2c288df232c76ab61ae11 [diff] |
Snap for 8992082 from cfb1a4bc37a7d8f509e2c288df232c76ab61ae11 to gki13-boot-release Change-Id: Ida77a15ddee265e6bfd35241a568f8116765b400
This library provides the ThreadLocal
type 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.1"
This crate's minimum supported Rust version (MSRV) is 1.36.0.
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.