MCPcopy Create free account
hub / github.com/ErickWendel/myownnode / main

Function main

preclass/capivara/examples/cpp-native-threads.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18int main()
19{
20 // Constructs the new thread and runs it. Does not block execution.
21 thread new_thread(task1, "Hello");
22 fprintf(stderr, "Hey there\n");
23 fprintf(stderr, "Hey there\n");
24 fprintf(stderr, "Hey there\n");
25 new_thread.join();
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected