commit | 1e6624d2b171182bbfe65add2c3b11a705faa87d | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 15 12:08:02 2023 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 15 12:08:02 2023 -0800 |
tree | 5ea8d132ab05426361c61684f35300352fd05ad1 | |
parent | 8d9b2cc91899690bb4a47bf3d4a9fa7115db873c [diff] | |
parent | 39fa14474841fabb8d4db082278a24e76210016b [diff] |
Merge 39fa14474841fabb8d4db082278a24e76210016b on remote branch Change-Id: I43996e791a94fe3779804dd716ff57219c78aa01
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.