File tree Expand file tree Collapse file tree
library/std/src/sys/thread_local Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ impl Drop for EnableGuard {
106106 }
107107}
108108
109+ /// Set up the current thread to invoke `cleanup` when it finishes.
109110pub fn enable ( ) {
110111 let registered = if cfg ! ( target_thread_local) {
111112 #[ thread_local]
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pub(crate) mod destructors {
8181
8282/// This module provides a way to schedule the execution of the destructor list
8383/// and the [runtime cleanup](crate::rt::thread_cleanup) function. Calling `enable`
84- /// should ensure that these functions are called at the right times.
84+ /// sets up the current thread to ensure that these functions are called at the right times.
8585pub ( crate ) mod guard {
8686 cfg_select ! {
8787 all( target_thread_local, target_vendor = "apple" ) => {
You can’t perform that action at this time.
0 commit comments