Skip to content

Commit 33e6f09

Browse files
Join threads, not wait to finish.
1 parent 9df46e7 commit 33e6f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/multithreading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main()
3535

3636
auto write = std::thread{in, std::ref(channel)};
3737

38-
// Wait for all threads to finish
38+
// Join all threads
3939
for (std::size_t i = 0U; i < threads; ++i) {
4040
reads.at(i).join();
4141
}

0 commit comments

Comments
 (0)