Skip to content

Commit

Permalink
doc: clarify thread::scoped::JoinGuard chapter (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu authored Oct 6, 2021
1 parent 7cf00d4 commit 650d245
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/leaking.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ horribly degenerate. Also *oh my gosh* it's such a ridiculous corner case.

## thread::scoped::JoinGuard

> Note: This API has already been removed from std, for more information
> you may refer [issue #24292](https://github.com/rust-lang/rust/issues/24292).
>
> We still remain this chapter here because we think this example is still
> important, regardless of if it is still in std.
The thread::scoped API intended to allow threads to be spawned that reference
data on their parent's stack without any synchronization over that data by
ensuring the parent joins the thread before any of the shared data goes out
Expand Down

0 comments on commit 650d245

Please sign in to comment.