rust/src/libcollections
Aaron Turon a27fbac868 Revise std::thread API to join by default
This commit is part of a series that introduces a `std::thread` API to
replace `std::task`.

In the new API, `spawn` returns a `JoinGuard`, which by default will
join the spawned thread when dropped. It can also be used to join
explicitly at any time, returning the thread's result. Alternatively,
the spawned thread can be explicitly detached (so no join takes place).

As part of this change, Rust processes now terminate when the main
thread exits, even if other detached threads are still running, moving
Rust closer to standard threading models. This new behavior may break code
that was relying on the previously implicit join-all.

In addition to the above, the new thread API also offers some built-in
support for building blocking abstractions in user space; see the module
doc for details.

Closes #18000

[breaking-change]
2014-12-18 23:31:52 -08:00
..
btree rollup merge of #19902: alexcrichton/second-pass-mem 2014-12-17 11:50:29 -08:00
bench.rs libcollections: use unboxed closures 2014-12-13 17:03:47 -05:00
binary_heap.rs std: Second pass stabilization of default 2014-12-15 20:04:52 -08:00
bit.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
dlist.rs rollup merge of #19902: alexcrichton/second-pass-mem 2014-12-17 11:50:29 -08:00
enum_set.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
lib.rs remove TreeMap, TreeSet, TrieMap, TrieSet, LruCache. deprecate EnumSet's std re-export 2014-12-18 16:20:31 -05:00
macros.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
ring_buf.rs rollup merge of #19902: alexcrichton/second-pass-mem 2014-12-17 11:50:29 -08:00
slice.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
str.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
string.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
vec_map.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
vec.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00