commit | af3678b9f04a5ab86b4ec0ee9ea15cb1b612aded | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:34:39 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:34:39 2023 +0000 |
tree | 03ff332f00013788b5fbe9b552f3d285627f560c | |
parent | 27b18aa17d051f8f2bf8a15419d3d3a4d9bc3c46 [diff] | |
parent | a04647f49289e252243698da97cb54487c4baccf [diff] |
Snap for 10460766 from a04647f49289e252243698da97cb54487c4baccf to mainline-healthfitness-release Change-Id: I5618a6e195272581a2cee78b13043b11579f5a59
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.59.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.