tag | 44e844e4c0cc8b19d2ad36c3d30b887a376d6fe6 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 27 19:11:25 2020 -0700 |
object | 55629747c3beca7abbdd157e757f695a7afa3731 |
Platform Tools Release 30.0.0 (6405830)
commit | 55629747c3beca7abbdd157e757f695a7afa3731 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:24:03 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:28:23 2020 -0700 |
tree | 50fb0b53a7a97197d5529f07d42d09e674a56e17 | |
parent | b5ea820568738bb078456ba5befe3f8093e0aeb7 [diff] |
Import 'thread_local' package version 1.0.1 * Add OWNERS * No Android.bp yet Bug: 152884384 Test: make Change-Id: I50daca2484475354a0f7696a1ad755a0738697c3
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.