commit | 428a58c1f356043ec3a339c15963771bf221bdf9 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 23 10:41:33 2021 -0700 |
committer | Joel Galenson <jgalenson@google.com> | Mon Aug 23 10:41:33 2021 -0700 |
tree | 4ddc01f58a45aaef386e103b12029459d4cbd9f1 | |
parent | 3c8cbe0379737e97420aa15966ae70949412c11b [diff] |
Update TEST_MAPPING Test: None Change-Id: I053f884c57d9fcfacb2623e0cf3cb9a8d5c06959
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.36.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.