about summary refs log tree commit diff
path: root/library/std/src/sys/windows
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2022-12-30 15:49:47 +0100
committerjoboet <jonasboettiger@icloud.com>2022-12-30 15:49:47 +0100
commit9abda03da69ee64625f2242cdaefa348bd0b48cd (patch)
treea9e521cd6a0fbe80f4a88894100ce5076a4e6866 /library/std/src/sys/windows
parent3076f4ec30632a063d0737bef589e1c4859ad23c (diff)
downloadrust-9abda03da69ee64625f2242cdaefa348bd0b48cd.tar.gz
rust-9abda03da69ee64625f2242cdaefa348bd0b48cd.zip
std: rename `Parker::new` to `Parker::new_in_place`, add safe `Parker::new` constructor for SGX
Diffstat (limited to 'library/std/src/sys/windows')
-rw-r--r--library/std/src/sys/windows/thread_parking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/thread_parking.rs b/library/std/src/sys/windows/thread_parking.rs
index 2f7ae863b6a..5d43676adbb 100644
--- a/library/std/src/sys/windows/thread_parking.rs
+++ b/library/std/src/sys/windows/thread_parking.rs
@@ -97,7 +97,7 @@ const NOTIFIED: i8 = 1;
 impl Parker {
     /// Construct the Windows parker. The UNIX parker implementation
     /// requires this to happen in-place.
-    pub unsafe fn new(parker: *mut Parker) {
+    pub unsafe fn new_in_place(parker: *mut Parker) {
         parker.write(Self { state: AtomicI8::new(EMPTY) });
     }