MCPcopy Create free account
hub / github.com/Codesire-Deng/co_context / main

Function main

example/sem.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93int main() {
94 io_context ctx;
95
96 for (auto id{0U}; id != max_threads; ++id) {
97 ctx.co_spawn(workerThread(id));
98 }
99
100 Guide::show_info();
101 Guide::start_time();
102
103 ctx.start();
104 ctx.join();
105}

Callers

nothing calls this directly

Calls 4

startMethod · 0.80
joinMethod · 0.80
workerThreadFunction · 0.70
co_spawnMethod · 0.45

Tested by

no test coverage detected