| 86 | } |
| 87 | |
| 88 | int main() { |
| 89 | std::vector<std::thread> threads; |
| 90 | threads.reserve(max_threads); |
| 91 | |
| 92 | Guide::show_info(); |
| 93 | Guide::start_time(); |
| 94 | |
| 95 | for (auto id{0U}; id != max_threads; ++id) { |
| 96 | threads.push_back(std::thread(workerThread, id)); |
| 97 | } |
| 98 | |
| 99 | for (auto &thread : threads) { |
| 100 | thread.join(); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // NOLINTEND |