| commit | 22550484026539b6b50e4bed6d359efe884b5a4d | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Sat Aug 31 01:15:23 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Sat Aug 31 01:15:23 2024 +0000 |
| tree | 6995d7a418836c003e9a3fcebf36003464bc10cb | |
| parent | ab9cb3b9bed97f1b3c9c6634bf018e00275d7100 [diff] | |
| parent | 9376dc62f9d634a6c339a4bfeb88c62970465b9d [diff] |
Snap for 12304452 from 9376dc62f9d634a6c339a4bfeb88c62970465b9d to 24Q4-release Change-Id: I4cb71519d4e1963c547ae6b86353cd11b55f391e
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.