File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
library/std/src/sys/common/thread_local Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 22//!
33//! To achieve the best performance, we need to differentiate between four types
44//! of TLS, resulting from the method of initialization used (`const` or lazy)
5- //! and the drop requirements of the stored type, as indicated by [`needs_drop`].
6- //! However, across these types a TLS variable can only be in three different
7- //! different states, allowing us to use a common implementation specialized by
8- //! type parameters. The three states are:
5+ //! and the drop requirements of the stored type, as indicated by
6+ //! [`needs_drop`](crate::mem::needs_drop). However, across these types a TLS
7+ //! variable can only be in three different different states, allowing us to
8+ //! use a common implementation specialized by type parameters. The three states
9+ //! are:
910//!
10- //! 1. [`Initial`](State::Inital ): the destructor has not been registered and/or
11+ //! 1. [`Initial`](State::Initial ): the destructor has not been registered and/or
1112//! the variable is uninitialized.
1213//! 2. [`Alive`](State::Alive): if it exists, the destructor is registered. The
1314//! variable is initialized.
You can’t perform that action at this time.
0 commit comments