File tree 1 file changed +6
-5
lines changed
library/std/src/sys/common/thread_local
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
//!
3
3
//! To achieve the best performance, we need to differentiate between four types
4
4
//! 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:
9
10
//!
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
11
12
//! the variable is uninitialized.
12
13
//! 2. [`Alive`](State::Alive): if it exists, the destructor is registered. The
13
14
//! variable is initialized.
You can’t perform that action at this time.
0 commit comments