pub unsafe fn run()
🔬This is a nightly-only experimental API. (
thread_local_internals
)Available on
target_thread_local
and not (target_family=wasm
and non-target feature atomics
) only.Expand description
The guard
module contains platform-specific functions which will run this
function on thread exit if guard::enable
has been called.
§Safety
May only be run on thread exit to guarantee that there are no live references to TLS variables while they are destroyed.