about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-05-17 13:11:57 -0700
committerbors <bors@rust-lang.org>2016-05-17 13:11:57 -0700
commit0667ae93fb72eb25594258e55de9b4ae8f9f02a8 (patch)
tree687493154183e44691c5996fa5020cf088c6138a /src/liballoc_system
parent30422de32d905dca54e503ec7990c4d7d11334da (diff)
parent20b912961774add5a83d66404a079238d088afbd (diff)
downloadrust-0667ae93fb72eb25594258e55de9b4ae8f9f02a8.tar.gz
rust-0667ae93fb72eb25594258e55de9b4ae8f9f02a8.zip
Auto merge of #33665 - golddranks:thread-park-add-big-picture-explanation, r=aturon
Added a big-picture explanation for thread::park() & co.

As I said in https://www.reddit.com/r/rust/comments/4ihvv1/hey_rust_programmers_got_a_question_ask_here/d372s4i, the current explanation of the `park()` and `unpark()` is a bit unclear. It says that they're used for blocking, but then it goes on explaining the semantics in detail, leaving the bigger picture a bit unclear.

I added a short high-level explanation that explains how the functions are used. I also exposed the full paths (`thread::park()` and `thread::Thread::unpark()`), because `unpark()`, being a method, is not directly visible at the module level.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions