| commit | 6294410684b9bf67bbfa580df6815efa1db5d637 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:13:11 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:13:11 2024 +0000 |
| tree | 6995d7a418836c003e9a3fcebf36003464bc10cb | |
| parent | dfe2242e3871970aad0595f82ad28989a6cd28a9 [diff] | |
| parent | 4e514b5079b540beb2ea224cd1114bb88a9eebe1 [diff] |
Snap for 12349386 from 4e514b5079b540beb2ea224cd1114bb88a9eebe1 to sdk-release Change-Id: Idc864d73fb2da918e3064429b66bab764926c6e1
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.