Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeNA/HandlerSocket-Plugin-for-MySQL
/ atomic_exchange_and_add
Function
atomic_exchange_and_add
client/hstest.cpp:25–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
24
#if __GNUC__ >= 4
25
long atomic_exchange_and_add(volatile long *valp, long c)
26
{
27
return __sync_fetch_and_add(valp, c);
28
}
29
#else
30
#include <bits/atomicity.h>
31
using namespace __gnu_cxx;
Callers
2
increment_count
Method · 0.85
increment_conn
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected