rust/src/libcoretest
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
..
fmt libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
hash Move hash module from collections to core 2014-12-15 22:48:54 -08:00
num librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
any.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
atomic.rs Register new snapshots 2014-10-10 22:09:49 -07:00
cell.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
char.rs std: Change escape_unicode to use new escapes 2014-12-16 08:09:37 -08:00
clone.rs
cmp.rs Remove Signed trait and add SignedInt trait 2014-11-13 03:46:03 +11:00
finally.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
iter.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
lib.rs Move hash module from collections to core 2014-12-15 22:48:54 -08:00
mem.rs Fix fallout 2014-12-03 10:41:48 -05:00
ops.rs
option.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
ptr.rs Remove a large amount of deprecated functionality 2014-10-19 12:59:40 -07:00
raw.rs
result.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
slice.rs Test fixes and rebase conflicts 2014-11-26 16:50:13 -08:00
str.rs libcoretest: fix fallout in unit tests 2014-12-13 17:03:45 -05:00
tuple.rs Tuple test no longer needed. Is already in run-pass tests 2014-12-16 02:42:25 -05:00