MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / main

Function main

example/13_generator/source/main.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int 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}

Callers

nothing calls this directly

Calls 4

read_file_linesFunction · 0.85
background_executorMethod · 0.80
thread_pool_executorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected