Bug: 153119948

Clone this repo:
  1. 24d7bf2 Merge "Update TEST_MAPPING" am: 0dcc8b47c3 am: 4a119da3f5 am: cfb1a4bc37 am: e824a896d9 by Treehugger Robot · 8 months ago main-16k-with-phones master
  2. e824a89 Merge "Update TEST_MAPPING" am: 0dcc8b47c3 am: 4a119da3f5 am: cfb1a4bc37 by Treehugger Robot · 8 months ago
  3. cfb1a4b Merge "Update TEST_MAPPING" am: 0dcc8b47c3 am: 4a119da3f5 by Treehugger Robot · 8 months ago main-16k
  4. 4a119da Merge "Update TEST_MAPPING" am: 0dcc8b47c3 by Treehugger Robot · 8 months ago
  5. 0dcc8b4 Merge "Update TEST_MAPPING" by Treehugger Robot · 8 months ago

thread_local

Build Status Crates.io

This library provides the ThreadLocal type 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.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
thread_local = "1.1"

Minimum Rust version

This crate's minimum supported Rust version (MSRV) is 1.36.0.

License

Licensed under either of

at your option.

Contribution

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.