MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / main

Function main

13-Multithreading/code/barrier_example.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34int main()
35{
36 std::println("\t{}", FormatLine(std::views::iota(1, 10)));
37 int threadNum = 9;
38 std::vector<std::jthread> threads;
39
40 for (int i = 1; i <= threadNum; ++i)
41 threads.emplace_back(Work, i);
42 return 0;
43}

Callers

nothing calls this directly

Calls 1

FormatLineFunction · 0.85

Tested by

no test coverage detected