tag | 0c8abaadff9a8f8d12bc8104e14168689674b7d4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Sat Oct 01 12:28:46 2022 -0700 |
object | 2e3bcbc83d8b831b0dbd7335972370c6942d5522 |
aml_go_adb_330913000
commit | 2e3bcbc83d8b831b0dbd7335972370c6942d5522 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 16 20:12:37 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 16 20:12:37 2022 +0000 |
tree | 5ea8d132ab05426361c61684f35300352fd05ad1 | |
parent | ef798d486617c53131b22a57973eb1348f26bcdf [diff] | |
parent | f8343a39f7646c78e7080653ca833c6e20575e4a [diff] |
Snap for 8736029 from f8343a39f7646c78e7080653ca833c6e20575e4a to mainline-go-adbd-release Change-Id: I6e93f4bc7a62138fa34e1c8676557583a82f7c66
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.