Skip to content

Commit aa99bd9

Browse files
authored
Rollup merge of rust-lang#46174 - stjepang:stabilize-spinloophint, r=sfackler
Stabilize spin_loop_hint Stabilize `spin_loop_hint` in release `1.23.0`. I've also renamed feature `hint_core_should_pause` to `spin_loop_hint`. cc rust-lang#41196
2 parents 2f012e4 + d5e8b61 commit aa99bd9

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

src/doc/unstable-book/src/library-features/hint-core-should-pause.md

-41
This file was deleted.

src/libcore/sync/atomic.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ use fmt;
103103
///
104104
/// On some platforms this function may not do anything at all.
105105
#[inline]
106-
#[unstable(feature = "hint_core_should_pause", issue = "41196")]
107-
pub fn hint_core_should_pause()
108-
{
106+
#[stable(feature = "spin_loop_hint", since = "1.24.0")]
107+
pub fn spin_loop_hint() {
109108
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
110109
unsafe {
111110
asm!("pause" ::: "memory" : "volatile");

0 commit comments

Comments
 (0)