Skip to content

Rollup of 21 pull requests #33482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 45 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f7e1421
Add `TAGS.rustc.emacs`/`TAGS.rustc.vi` make targets, (re-)including r…
pnkfelix Apr 28, 2016
27c01cb
Add process types documentation
GuillaumeGomez Apr 28, 2016
2d15690
Doc improvement on std::fmt module
GuillaumeGomez May 1, 2016
47d9f49
Remove rust flags from doc block
GuillaumeGomez May 1, 2016
e3f1312
dep_graph: avoid panicking in thread when channel closed
birkenfeld May 1, 2016
eba43fb
std::thread docs: spawn() returns not a Thread anymore
birkenfeld May 1, 2016
b75f81c
parser: do not try to continue with `unsafe` on foreign fns
birkenfeld May 2, 2016
a11ddb3
Replace copy-pasted variable name with relevant one
shepmaster May 4, 2016
2ca3120
errors in the doc
kindlychung May 4, 2016
16219de
Update iterator.rs
kindlychung May 4, 2016
3371b8a
Add detailed error explanation for E0504
cramertj May 3, 2016
d1c487e
Add an example to Wrapping's documentation.
fiveop May 5, 2016
a22ca28
[Doc] Default cpu is "generic" (and not "default")
phil-opp May 5, 2016
39eec80
mk: Fix building with --enable-ccache
alexcrichton May 1, 2016
2912bfb
doc: Update reference with better description of target_env
brson May 5, 2016
26eb2be
Fix some some duplicate words.
birkenfeld May 5, 2016
10599e4
doc: make RFC references consistent
birkenfeld May 5, 2016
89aa042
rustdoc: add "src" links to individual impls
birkenfeld May 3, 2016
32edf1d
Fix Typo in Barrier::wait documentation
CryZe May 6, 2016
40025e8
Indicate struct names are code-like in doc-comment.
frewsxcv May 6, 2016
f25cbe6
Add detailed error explanation for E0389
cramertj May 4, 2016
8e9008d
doc: mut not needed
tshepang May 5, 2016
9f935c8
doc: binding not needed
tshepang May 5, 2016
143b423
Rollup merge of #33129 - GuillaumeGomez:fmt_doc, r=steveklabnik
GuillaumeGomez May 7, 2016
966a9a2
Rollup merge of #33256 - pnkfelix:add-rustc-specific-tags-files, r=ni…
GuillaumeGomez May 7, 2016
08e2b33
Rollup merge of #33283 - GuillaumeGomez:process_doc, r=steveklabnik
GuillaumeGomez May 7, 2016
07a71ba
Rollup merge of #33313 - birkenfeld:depgraph-panic, r=nikomatsakis
GuillaumeGomez May 7, 2016
3811d66
Rollup merge of #33314 - alexcrichton:fix-enable-ccache, r=pnkfelix
GuillaumeGomez May 7, 2016
fa8546a
Rollup merge of #33326 - birkenfeld:issue-33321, r=GuillaumeGomez
GuillaumeGomez May 7, 2016
d87054d
Rollup merge of #33336 - birkenfeld:issue-27361, r=sfackler
GuillaumeGomez May 7, 2016
0abdb1e
Rollup merge of #33382 - birkenfeld:issue-30416, r=alexcrichton
GuillaumeGomez May 7, 2016
884e05e
Rollup merge of #33386 - cramertj:E0504, r=steveklabnik
GuillaumeGomez May 7, 2016
815aebd
Rollup merge of #33402 - shepmaster:copied-variable-name, r=Manishearth
GuillaumeGomez May 7, 2016
dcb10e9
Rollup merge of #33409 - kindlychung:patch-2, r=steveklabnik
GuillaumeGomez May 7, 2016
fbfbed5
Rollup merge of #33410 - GuillaumeGomez:explain, r=Manishearth
GuillaumeGomez May 7, 2016
a6f6888
Rollup merge of #33412 - cramertj:E0389, r=Manishearth
GuillaumeGomez May 7, 2016
0a11aff
Rollup merge of #33428 - fiveop:wrapping_example, r=steveklabnik
GuillaumeGomez May 7, 2016
36bc97d
Rollup merge of #33430 - phil-opp:patch-1, r=alexcrichton
GuillaumeGomez May 7, 2016
6fa27ae
Rollup merge of #33437 - brson:trips, r=Manishearth
GuillaumeGomez May 7, 2016
616cd72
Rollup merge of #33438 - birkenfeld:dup-words, r=steveklabnik
GuillaumeGomez May 7, 2016
cdbf864
Rollup merge of #33439 - birkenfeld:ip-rfc-refs, r=steveklabnik
GuillaumeGomez May 7, 2016
f440176
Rollup merge of #33442 - tshepang:trim, r=steveklabnik
GuillaumeGomez May 7, 2016
77f0163
Rollup merge of #33456 - CryZe:barrier-wait-docs, r=GuillaumeGomez
GuillaumeGomez May 7, 2016
c5595da
Rollup merge of #33459 - frewsxcv:patch-29, r=guillaumegomez
GuillaumeGomez May 7, 2016
ff1f450
Fix for invalid error code example (missing bracket)
GuillaumeGomez May 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions src/libstd/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
//! ## The threading model
//!
//! An executing Rust program consists of a collection of native OS threads,
//! each with their own stack and local state.
//! each with their own stack and local state. Threads can be named, and
//! provide some built-in support for low-level synchronization.
//!
//! Communication between threads can be done through
//! [channels](../../std/sync/mpsc/index.html), Rust's message-passing
Expand All @@ -37,20 +38,6 @@
//! convenient facilities for automatically waiting for the termination of a
//! child thread (i.e., join).
//!
//! ## The `Thread` type
//!
//! Threads are represented via the `Thread` type, which you can
//! get in one of two ways:
//!
//! * By spawning a new thread, e.g. using the `thread::spawn` function.
//! * By requesting the current thread, using the `thread::current` function.
//!
//! Threads can be named, and provide some built-in support for low-level
//! synchronization (described below).
//!
//! The `thread::current()` function is available even for threads not spawned
//! by the APIs of this module.
//!
//! ## Spawning a thread
//!
//! A new thread can be spawned using the `thread::spawn` function:
Expand Down Expand Up @@ -99,6 +86,18 @@
//! });
//! ```
//!
//! ## The `Thread` type
//!
//! Threads are represented via the `Thread` type, which you can get in one of
//! two ways:
//!
//! * By spawning a new thread, e.g. using the `thread::spawn` function, and
//! calling `thread()` on the `JoinHandle`.
//! * By requesting the current thread, using the `thread::current` function.
//!
//! The `thread::current()` function is available even for threads not spawned
//! by the APIs of this module.
//!
//! ## Blocking support: park and unpark
//!
//! Every thread is equipped with some basic low-level blocking support, via the
Expand Down