tag | e7b2f5a8052b0c47ff92536d40a976de735bb700 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Sep 17 01:20:08 2021 -0700 |
object | fc4a22ab67c80ced387c7b0d355e0edc2d08adea |
Platform Tools Release 31.0.3 (7562133)
commit | fc4a22ab67c80ced387c7b0d355e0edc2d08adea | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 08 01:05:48 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 08 01:05:48 2021 +0000 |
tree | 8c0c8cb8052b6735ac8dba69305d0f9a81a73027 | |
parent | 1862199104b8ccbd6694e527f963aaedc0514bfc [diff] | |
parent | 3c8cbe0379737e97420aa15966ae70949412c11b [diff] |
Snap for 7529902 from 3c8cbe0379737e97420aa15966ae70949412c11b to sdk-release Change-Id: Iff5bb1e16f7c3f2592efac823e1fbbe389fd84d4
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.