]> git.lizzy.rs Git - rust.git/commit
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)
commit5695aea473477919916116a678da93217b76496a
tree6976963e27bced35b3226cb51113e61a7e9b0a7b
parent982d9591e1248c117f40c226e6aa7e95541786c8
parent2eb84299ca0a23d48ab5f7e489d72708d99b1a1e
Rollup merge of #32507 - klingtnet:master, r=steveklabnik

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