commit | 54ae9e02b0ce1b3966a8426d4d32c432f75fb3d9 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 19:18:23 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 19:18:23 2020 +0000 |
tree | e53d777a5722b1c8f2378fcf93b8efbbb739f78f | |
parent | b59e6de7ef1b7dc75d8f98dad415fa6c4f247ef8 [diff] | |
parent | a5999ad43679550ec1dac4e3de01e1da38c705e6 [diff] |
[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: 170b29c2ad -s ours am: 02a3fe6560 -s ours am: a5999ad436 -s ours am skip reason: Change-Id I2f1204cc8a4aca48eaef99ef17768a9dfa3b79ee with SHA-1 39f90d5c0b is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/12469669 Change-Id: I6125b75e3a090d8a8ee9d2178fb7dde9bf55c9b3
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.