diff options
| author | Andreas Linz <klingt.net@gmail.com> | 2016-03-26 14:53:27 +0100 |
|---|---|---|
| committer | Andreas Linz <klingt.net@gmail.com> | 2016-03-26 14:53:27 +0100 |
| commit | 2eb84299ca0a23d48ab5f7e489d72708d99b1a1e (patch) | |
| tree | 8510b8e25d7cea16f4c5830da6ada3445bab584f /src/liballoc_system | |
| parent | c9b6ba800aba1e4caf8548904d2957f5cfda2758 (diff) | |
| download | rust-2eb84299ca0a23d48ab5f7e489d72708d99b1a1e.tar.gz rust-2eb84299ca0a23d48ab5f7e489d72708d99b1a1e.zip | |
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.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
