commit | 8ddd3ce2bf53b255edbc2af1dd81a166c486ef4e | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 02 23:55:47 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 02 23:55:47 2024 +0000 |
tree | 1c2c2e42823b3126dc945ed3ec2a6aeee86acdbf | |
parent | 7515c3b153c8b23801cf6d139edb5886813a0637 [diff] | |
parent | d318d783fc945c1c75e0ec8f57202511813d6810 [diff] |
Snap for 11400057 from d318d783fc945c1c75e0ec8f57202511813d6810 to simpleperf-release Change-Id: Id144d1fbc06c10197d8b7d2936518e07eef5aa14
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.