#thread-local #macro #values #alternatives

thread_map

Types that are simple and easy-to-use alternatives to the std::thread_local macro

3 unstable releases

0.1.0 Dec 31, 2024
0.0.2 Dec 30, 2024
0.0.1 Dec 29, 2024

#352 in Concurrency

Download history 268/week @ 2024-12-25 74/week @ 2025-01-01 13/week @ 2025-01-08

355 downloads per month

MIT license

19KB
333 lines

thread_map

This library provides types that support thread-local values by associating ThreadIds to the values. It is a simple and easy-to-use alternative to the std::thread_local macro and the thread_local crate. It has no dependencies.

Documentation

See the API documentation on docs.rs and the source repo.

Support

Create a new issue on GitHub.

License

This library is distributed under the terms of the MIT license, with copyright retained by the author.

See LICENSE for details.

No runtime deps