Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
std::atomic<int> global_counter(0);
12
13
void sleepy_function(int ms) {
14
CTRACK;
15
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
16
}
17
18
int recursive_work(int n) {
19
CTRACK;
Callers
3
recursive_work
Function · 0.85
nested_function_a
Function · 0.85
nested_function_b
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected