summary refs log tree commit diff
path: root/library/std/src/thread/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-04 12:37:21 +0200
committerGitHub <noreply@github.com>2024-05-04 12:37:21 +0200
commitcc51f91455847436fdf2c2634a39e50063453524 (patch)
tree8fa232a4e75bc5696d611a2e4fad4101b5973e95 /library/std/src/thread/mod.rs
parentb8fa047398188dc773c5797c9191f6baf7d6da7f (diff)
parenta56fd370fc3e6b5cfbd9eb0b96f533d0bcca0b1f (diff)
downloadrust-cc51f91455847436fdf2c2634a39e50063453524.tar.gz
rust-cc51f91455847436fdf2c2634a39e50063453524.zip
Rollup merge of #124159 - joboet:move_pal_thread_parking, r=ChrisDenton
Move thread parking to `sys::sync`

Part of #117276.

I'll leave the platform-specific API abstractions in `sys::pal`, as per the initial proposal. I'm not entirely sure whether we'll want to keep it that way, but that remains to be seen.

r? ``@ChrisDenton`` (if you have time)
Diffstat (limited to 'library/std/src/thread/mod.rs')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 297432c8ca9..78bc9af6c4d 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -174,8 +174,8 @@ use crate::ptr::addr_of_mut;
 use crate::str;
 use crate::sync::atomic::{AtomicUsize, Ordering};
 use crate::sync::Arc;
+use crate::sys::sync::Parker;
 use crate::sys::thread as imp;
-use crate::sys_common::thread_parking::Parker;
 use crate::sys_common::{AsInner, IntoInner};
 use crate::time::{Duration, Instant};