Bug: 153119948

Clone this repo:
  1. 2e9be23 Update Android.bp by running cargo_embargo am: ae9f194478 by James Farrell · 8 weeks ago main master
  2. ae9f194 Update Android.bp by running cargo_embargo by James Farrell · 8 weeks ago
  3. ec909e4 Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 am: eed8f2116b by Andrew Walbran · 8 months ago android14-qpr3-release android14-qpr3-s2-release android-14.0.0_r50 android-14.0.0_r51 android-14.0.0_r52 android-14.0.0_r53 android-14.0.0_r54
  4. 415aa38 Migrate to cargo_embargo. am: c952b7aca2 am: d318d783fc am: 320f6c6fd9 by Andrew Walbran · 8 months ago
  5. eed8f21 Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 by Andrew Walbran · 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.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.