File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1308,13 +1308,17 @@ impl<T> JoinHandle<T> {
1308
1308
& self . 0 . thread
1309
1309
}
1310
1310
1311
- /// Waits for the associated thread to finish.
1311
+ /// Waits for the associated thread to finish. In terms of [atomic memory orderings],
1312
+ /// the completion of the associated thread synchronizes with this function returning.
1313
+ /// In other words, all operations performed by that thread are ordered before all
1314
+ /// operations that happen after `join` returns.
1312
1315
///
1313
1316
/// If the child thread panics, [`Err`] is returned with the parameter given
1314
1317
/// to [`panic`].
1315
1318
///
1316
1319
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
1317
1320
/// [`panic`]: ../../std/macro.panic.html
1321
+ /// [atomic memory orderings]: ../../std/sync/atomic/index.html
1318
1322
///
1319
1323
/// # Panics
1320
1324
///
You can’t perform that action at this time.
0 commit comments