commit | 53b1f934963e65d6830b7ed3fda71c743fe56ce8 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Nov 29 14:05:37 2021 -0800 |
committer | Joel Galenson <jgalenson@google.com> | Fri Dec 10 15:33:36 2021 -0800 |
tree | 879d2bd02caa3477ad95271540188e8ab1a8f2fa | |
parent | f91f6ac65232aed1093ca5f5b112a26d6ab0f25d [diff] |
Refresh Android.bp, cargo2android.json, TEST_MAPPING. Test: None Change-Id: I1572b9b1633d5ded443526b3d1652904a7c10913
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.