Bug: 153119948

Clone this repo:
  1. c952b7a Migrate to cargo_embargo. by Andrew Walbran · 3 weeks ago main master
  2. 82f7361 Make thread_local available to product and vendor am: fbe5c1db95 am: d5df3cc889 am: d61f5b6dae by Matthew Maurer · 9 months ago android14-dev
  3. d61f5b6 Make thread_local available to product and vendor am: fbe5c1db95 am: d5df3cc889 by Matthew Maurer · 9 months ago
  4. d5df3cc Make thread_local available to product and vendor am: fbe5c1db95 by Matthew Maurer · 9 months ago android-u-beta-1-gpl
  5. fbe5c1d Make thread_local available to product and vendor by Matthew Maurer · 9 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.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.