MCPcopy Create free account
hub / github.com/Compaile/ctrack / sleepy_function

Function sleepy_function

examples/complex_multithreaded_puzzle.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11std::atomic<int> global_counter(0);
12
13void sleepy_function(int ms) {
14 CTRACK;
15 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
16}
17
18int recursive_work(int n) {
19 CTRACK;

Callers 3

recursive_workFunction · 0.85
nested_function_aFunction · 0.85
nested_function_bFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected