tag | 9376e2056ed6409cc1b212543c9e768c7beb0a58 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Sep 21 17:00:14 2020 -0700 |
object | 68283bf5a0ccb54f140a0b6970369a79fb2977bf |
Platform Tools Release 30.0.4 (6686687)
commit | 68283bf5a0ccb54f140a0b6970369a79fb2977bf | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Jul 16 21:24:16 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Jul 16 21:24:16 2020 +0000 |
tree | ef3d40b9437d7c4c558a442b5eb6d4798e1df77b | |
parent | 23194f253a9e812cbec403c68d27535f51fe8813 [diff] | |
parent | b69fecd4a1853d75ed455a17516c4db82ef5ad14 [diff] |
Snap for 6686656 from b69fecd4a1853d75ed455a17516c4db82ef5ad14 to sdk-release Change-Id: Ib94d66bf78cce5cf1fd00c3ce92c090a0076e572
This library provides the ThreadLocal
and CachedThreadLocal
types 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.0"
and this to your crate root:
extern crate thread_local;
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.