MCPcopy 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
25long 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>
31using namespace __gnu_cxx;

Callers 2

increment_countMethod · 0.85
increment_connMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected