File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,11 @@ impl Thread {
768
768
769
769
/// Atomically makes the handle's token available if it is not already.
770
770
///
771
- /// See the module doc for more detail.
771
+ /// Every thread is equipped with some basic low-level blocking support, via
772
+ /// the [`park()`][park] function and the `unpark` method. These can be
773
+ /// used as a more CPU-efficient implementation of a spinlock.
774
+ ///
775
+ /// See the [module doc][thread] for more detail.
772
776
///
773
777
/// # Examples
774
778
///
@@ -784,6 +788,9 @@ impl Thread {
784
788
///
785
789
/// handler.join().unwrap();
786
790
/// ```
791
+ ///
792
+ /// [thread]: index.html
793
+ /// [park]: fn.park.html
787
794
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
788
795
pub fn unpark ( & self ) {
789
796
let mut guard = self . inner . lock . lock ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments