Skip to content

Commit e5bdd7e

Browse files
authored
Rollup merge of #123589 - RalfJung:nowin, r=ChrisDenton
sys_common::thread_local_key: make a note that this is not used on Windows This just confused me for a while. I don't have the time to clean it up but I can at least leave a note for the next wary traveler.
2 parents f64e971 + b1d1ad9 commit e5bdd7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/std/src/sys_common/thread_local_key.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! OS-based thread local storage
1+
//! OS-based thread local storage for non-Windows systems
22
//!
33
//! This module provides an implementation of OS-based thread local storage,
44
//! using the native OS-provided facilities (think `TlsAlloc` or
@@ -11,6 +11,9 @@
1111
//! the OS-TLS key. The other is a type which does implement `Drop` and hence
1212
//! has a safe interface.
1313
//!
14+
//! Windows doesn't use this module at all; `sys::pal::windows::thread_local_key`
15+
//! gets imported in its stead.
16+
//!
1417
//! # Usage
1518
//!
1619
//! This module should likely not be used directly unless other primitives are

0 commit comments

Comments
 (0)