commit | 4bf82f5b95d1c4c21e0b7367a2d7998d0781f340 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun May 26 07:11:07 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun May 26 07:11:07 2024 +0000 |
tree | 653dacc4734c3211590cdfbfa9c14de1aff01f42 | |
parent | 8991cd5649a28b4cf9de4e2fc13277fbfe7a8994 [diff] | |
parent | d5e1849b82e5f29f19ea0411ec4dda967bc90ec4 [diff] |
Snap for 11878398 from d5e1849b82e5f29f19ea0411ec4dda967bc90ec4 to busytown-mac-infra-release Change-Id: I6441d35ed0c3182c5763dc76eb6a1f838943c285
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.