#shutdown #barrier #thread-local

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

22 downloads per month

MIT license

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


~411K SLoC