Bug: 153119948

Clone this repo:
  1. 14a929c Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." by Joel Galenson · 6 weeks ago master
  2. 53b1f93 Refresh Android.bp, cargo2android.json, TEST_MAPPING. by Joel Galenson · 8 weeks ago
  3. d72a626 Update TEST_MAPPING am: 428a58c1f3 am: f91f6ac652 am: 32e333826c by Joel Galenson · 5 months ago
  4. 32e3338 Update TEST_MAPPING am: 428a58c1f3 am: f91f6ac652 by Joel Galenson · 5 months ago
  5. f91f6ac Update TEST_MAPPING am: 428a58c1f3 by Joel Galenson · 5 months ago android-s-v2-preview-1 android-s-v2-beta-2 android-s-v2-preview-2

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.