#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

#5 in #within

23 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–26MB
~328K SLoC