| 37 | } |
| 38 | |
| 39 | int main(const int argc, const char* argv[]) { |
| 40 | if (argc < 2) { |
| 41 | const auto help_msg = "please pass all necessary arguments\n argv[1] - the file to be read\n"; |
| 42 | std::cerr << help_msg << std::endl; |
| 43 | return -1; |
| 44 | } |
| 45 | |
| 46 | const auto file_path = std::string(argv[1]); |
| 47 | |
| 48 | concurrencpp::runtime runtime; |
| 49 | const auto thread_pool_executor = runtime.thread_pool_executor(); |
| 50 | const auto background_executor = runtime.background_executor(); |
| 51 | |
| 52 | read_file_lines(file_path, thread_pool_executor, background_executor).get(); |
| 53 | return 0; |
| 54 | } |
nothing calls this directly
no test coverage detected