Bug: 153119948

Clone this repo:
  1. d5df3cc Make thread_local available to product and vendor am: fbe5c1db95 by Matthew Maurer · 3 weeks ago master
  2. fbe5c1d Make thread_local available to product and vendor by Matthew Maurer · 3 weeks ago
  3. 8180afd Upgrade thread_local to 1.1.7 am: 4039605b26 by Jeff Vander Stoep · 6 weeks ago
  4. 4039605 Upgrade thread_local to 1.1.7 by Jeff Vander Stoep · 6 weeks ago
  5. 24d7bf2 Merge "Update TEST_MAPPING" am: 0dcc8b47c3 am: 4a119da3f5 am: cfb1a4bc37 am: e824a896d9 by Treehugger Robot · 10 months ago main-16k-with-phones

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.59.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.