diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-03-31 11:28:24 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2024-03-31 11:28:24 +0200 |
| commit | 76684181018640df1769604cd92ed6beb30a27d6 (patch) | |
| tree | 3acae87f5ed8d387c023f5ea8fd83f4854df1cb5 /library/std/src/sys/pal/teeos | |
| parent | 5b9d7ab558fe6ee53bd40e16a20c25716f3c9e56 (diff) | |
std: move `thread::current` TLS variable out of `thread_info`
Diffstat (limited to 'library/std/src/sys/pal/teeos')
| -rw-r--r-- | library/std/src/sys/pal/teeos/thread.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/library/std/src/sys/pal/teeos/thread.rs b/library/std/src/sys/pal/teeos/thread.rs index b76bcf9bbb0..fb4b74ba3c3 100644 --- a/library/std/src/sys/pal/teeos/thread.rs +++ b/library/std/src/sys/pal/teeos/thread.rs @@ -151,18 +151,6 @@ pub fn available_parallelism() -> io::Result<NonZero<usize>> { )) } -// stub -pub mod guard { - use crate::ops::Range; - pub type Guard = Range<usize>; - pub unsafe fn current() -> Option<Guard> { - None - } - pub unsafe fn init() -> Option<Guard> { - None - } -} - fn min_stack_size(_: *const libc::pthread_attr_t) -> usize { libc::PTHREAD_STACK_MIN.try_into().expect("Infallible") } |
