about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-11-22 00:00:01 +0100
committerStjepan Glavina <stjepang@gmail.com>2017-11-22 00:00:01 +0100
commit6ceb5f4bec83b525c5df409559272f0e10863f6a (patch)
tree47a8eb5631377b6b4514c49b36a644beaa53fc36 /src/libcore/sync
parentb1409af73d133f513980ccbf27c941a28d8d5c50 (diff)
Stabilize spin_loop_hint
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index b7cf6d778a2..5486cb29266 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -103,9 +103,8 @@ use fmt;
 ///
 /// On some platforms this function may not do anything at all.
 #[inline]
-#[unstable(feature = "hint_core_should_pause", issue = "41196")]
-pub fn hint_core_should_pause()
-{
+#[stable(feature = "spin_loop_hint", since = "1.23.0")]
+pub fn spin_loop_hint() {
     #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
     unsafe {
         asm!("pause" ::: "memory" : "volatile");