Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acl-dev/acl
/ run
Method
run
lib_acl_cpp/samples/atomic/main.cpp:28–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
27
protected:
28
void* run(void)
29
{
30
for (int i = 0; i < max_; i++) {
31
count_.add_fetch(1);
32
++count_;
33
}
34
return NULL;
35
}
36
37
private:
38
acl::atomic_long& count_;
Callers
1
main
Function · 0.45
Calls
1
add_fetch
Method · 0.80
Tested by
no test coverage detected