#thread-local #barrier #shutdown #run-time #destruction #async-context #within

yanked shutdown-barrier

Runtime shutdown barrier for synchronizing TLS destruction

3.0.0 Jan 10, 2023
2.0.0 Jan 2, 2023
1.0.0 Dec 15, 2022
0.1.0 Dec 12, 2022

#12 in #barrier

Download history 3/week @ 2024-02-22 1/week @ 2024-02-29 49/week @ 2024-03-07 102/week @ 2024-03-14

154 downloads per month

MIT license

6KB
165 lines

Shutdown Barrier

License Cargo Documentation

By utilizing a barrier to synchronize runtime threads during the destruction of thread local data, no tasks will outlive thread local data belonging to any worker thread, and all pointers to thread locals created within an async context and held therein will be of a valid lifetime.

See async-local

Dependencies

~0–29MB
~359K SLoC