Rollup merge of #48260 - dns2utf8:add_link_to_yield, r=kennytm

[doc] Add link to yield_now

A convenient link.
This commit is contained in:
Guillaume Gomez
2018-02-17 14:45:26 +01:00
committed by GitHub

View File

@@ -97,9 +97,10 @@ use fmt;
/// Save power or switch hyperthreads in a busy-wait spin-loop.
///
/// This function is deliberately more primitive than
/// `std::thread::yield_now` and does not directly yield to the
/// system's scheduler. In some cases it might be useful to use a
/// combination of both functions. Careful benchmarking is advised.
/// [`std::thread::yield_now`](../../../std/thread/fn.yield_now.html) and
/// does not directly yield to the system's scheduler.
/// In some cases it might be useful to use a combination of both functions.
/// Careful benchmarking is advised.
///
/// On some platforms this function may not do anything at all.
#[inline]