commit | bae971e3f35ce6323b40c9a5902f6adb0c724a87 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Oct 12 00:51:11 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Oct 12 00:51:11 2020 -0700 |
tree | 28f7acf652ab48555e39513388afbf44a1a0c4d0 | |
parent | 93bb2ff6ea47ed46eb859a7570eabe7ff233e57d [diff] |
Copy description from Cargo.toml to METADATA Test: make Change-Id: Ibad401b5e754f92feb58b4dc85dfbee5bd6b16d1
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.