tag | d67d1ceb5d32467e73ede8cc1e62a39e129f2f38 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Nov 04 12:14:44 2020 -0800 |
object | 7f29bd50df4322e3720d51be66b2c3103f787aef |
Platform Tools Release 30.0.5 (6877874)
commit | 7f29bd50df4322e3720d51be66b2c3103f787aef | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Oct 01 20:26:33 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Oct 01 20:26:33 2020 +0000 |
tree | 242124caf8b675ff3213a5ca180430d2e210adcb | |
parent | 68283bf5a0ccb54f140a0b6970369a79fb2977bf [diff] | |
parent | 93bb2ff6ea47ed46eb859a7570eabe7ff233e57d [diff] |
Snap for 6877830 from 93bb2ff6ea47ed46eb859a7570eabe7ff233e57d to sdk-release Change-Id: Id1aa8dfc15661dacf23bef4f636ad7b100defeb7
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.