]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #32507 - klingtnet:master, r=steveklabnik
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 28 Mar 2016 17:48:28 +0000 (13:48 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Mon, 28 Mar 2016 17:48:28 +0000 (13:48 -0400)
Fix missing console output in `Barrier` example

The `println!` calls in the previous version were never shown (at least
not in the playpen) because the main thread is finished before all the
spawned child threads were synchronized. This commit adds a join for
each thread handle to wait in the main thread until all child threads
are finished.

r? @steveklabnik


Trivial merge