diff options
| author | Stjepan Glavina <stjepang@gmail.com> | 2017-11-22 00:00:01 +0100 |
|---|---|---|
| committer | Stjepan Glavina <stjepang@gmail.com> | 2017-11-22 00:00:01 +0100 |
| commit | 6ceb5f4bec83b525c5df409559272f0e10863f6a (patch) | |
| tree | 47a8eb5631377b6b4514c49b36a644beaa53fc36 /src/libcore/sync | |
| parent | b1409af73d133f513980ccbf27c941a28d8d5c50 (diff) | |
Stabilize spin_loop_hint
Diffstat (limited to 'src/libcore/sync')
| -rw-r--r-- | src/libcore/sync/atomic.rs | 5 |
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"); |
