tag | 41cf9d1d35850fa15fa8989151e4cdb2feda5423 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Feb 05 11:36:00 2024 -0800 |
object | 39abd63bd3956fa3cc2e1898a4ae1faee4e5f5da |
Android 14.0.0 Release 25 (UQ1A.240205.004)
commit | 39abd63bd3956fa3cc2e1898a4ae1faee4e5f5da | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu Mar 09 18:06:43 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 09 18:06:43 2023 +0000 |
tree | 03ff332f00013788b5fbe9b552f3d285627f560c | |
parent | b28e5bc0e94741dd46983276586fdf08ebb3bace [diff] | |
parent | 82f73610180d493bb867ca8e3250ddd11d9a8c3c [diff] |
Make thread_local available to product and vendor am: fbe5c1db95 am: d5df3cc889 am: d61f5b6dae am: 82f7361018 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2476373 Change-Id: Ia82849eb47cd29d5ae9a8fd4f69cd9a226b739ba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.