Skip to content

Commit 3bf989f

Browse files
committed
Add link to yield_now
1 parent 5570cdc commit 3bf989f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/sync/atomic.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ use fmt;
9797
/// Save power or switch hyperthreads in a busy-wait spin-loop.
9898
///
9999
/// This function is deliberately more primitive than
100-
/// `std::thread::yield_now` and does not directly yield to the
101-
/// system's scheduler. In some cases it might be useful to use a
102-
/// combination of both functions. Careful benchmarking is advised.
100+
/// [`std::thread::yield_now`](../../thread/fn.yield_now.html) and
101+
/// does not directly yield to the system's scheduler.
102+
/// In some cases it might be useful to use a combination of both functions.
103+
/// Careful benchmarking is advised.
103104
///
104105
/// On some platforms this function may not do anything at all.
105106
#[inline]

0 commit comments

Comments
 (0)