commit | 09c90c0c710646533222dd39e98aae0db5d5bac0 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Mar 14 07:04:57 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Mar 14 07:04:57 2022 +0000 |
tree | 5ea8d132ab05426361c61684f35300352fd05ad1 | |
parent | 21d20db2270790694cc948e2244672cf45146643 [diff] | |
parent | ec4f2c9361f39bac51834c7f8e5f8e210fe0390b [diff] |
Snap for 8294919 from ec4f2c9361f39bac51834c7f8e5f8e210fe0390b to main-cg-testing-release Change-Id: Ia165a34a9d3f669d713ae05797fbe8d26b22173b
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.