about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-04 01:49:09 +0200
committerGitHub <noreply@github.com>2019-04-04 01:49:09 +0200
commitb4686ca95885eb384b518bf8e4f0b44aef6fc4f7 (patch)
tree168e4bd40ecba6cdda75514d846b22d3d869c751 /src/test/ui/thinlto
parentb78cbe6dddc5065c0dba1808e82f4bd17a453036 (diff)
parentbecee90cfd9f174ed050c1d4b366fd13d89f1913 (diff)
downloadrust-b4686ca95885eb384b518bf8e4f0b44aef6fc4f7.tar.gz
rust-b4686ca95885eb384b518bf8e4f0b44aef6fc4f7.zip
Rollup merge of #59664 - DevQps:improve-yield-spinlock-docs, r=alexcrichton
Updated the documentation of spin_loop and spin_loop_hint

# Description

- Updated the description of `core::hints::spin_loop`
- Updated the description of `core::async::spin_loop_hint`

Both documentation is rewritten to better reflect when one should prefer using a busy-wait spin-loop (and the `spin_loop` and `spin_loop_hint` functions) over `yield_now`. It also dives a little bit deeper on what the function actually does.

closes #55418
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions