tag | 0e4c87372c3e0a30a8db251efca6aa027c056326 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Feb 03 17:02:20 2023 -0800 |
object | 8188f3404e8a9d25955f1db8d3119952041fb87d |
Platform Tools Release 34.0.0 (9560563)
commit | 8188f3404e8a9d25955f1db8d3119952041fb87d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:03:00 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:03:00 2023 +0000 |
tree | 5ea8d132ab05426361c61684f35300352fd05ad1 | |
parent | 37f4a2fb84a7d347a86d691adc2bd35ee0c0fbf4 [diff] | |
parent | 24d7bf285817e8c876ff819ec829fb6171200ce4 [diff] |
Snap for 9550355 from 24d7bf285817e8c876ff819ec829fb6171200ce4 to sdk-release Change-Id: I5ea2019a857a949d857108e3c1aac4470db56019
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.