Skip to content

Commit

Permalink
Added a big-picture explanation for thread::park() & co.
Browse files Browse the repository at this point in the history
  • Loading branch information
golddranks committed May 16, 2016
1 parent bb39c49 commit 20b9129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/thread/mod.rs
Expand Up @@ -101,7 +101,9 @@
//! ## Blocking support: park and unpark
//!
//! Every thread is equipped with some basic low-level blocking support, via the
//! `park` and `unpark` functions.
//! `thread::park()` function and `thread::Thread::unpark()` method. `park()`
//! blocks the current thread, which can then be resumed from another thread by
//! calling the `unpark()` method on the blocked thread's handle.
//!
//! Conceptually, each `Thread` handle has an associated token, which is
//! initially not present:
Expand Down

0 comments on commit 20b9129

Please sign in to comment.