MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / increment_count

Method increment_count

client/hstest.cpp:147–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 count(0), conn_count(0), wait_conn(0), keygen(0), keygen_size(0),
146 enable_timing(0), usleep(0), dump(0) { }
147 void increment_count(unsigned int c = 1) const volatile {
148 atomic_exchange_and_add(&count, c);
149 }
150 void increment_conn(unsigned int c) const volatile {
151 atomic_exchange_and_add(&conn_count, c);
152 while (wait_conn != 0 && conn_count < wait_conn) {

Callers 10

test_1Method · 0.80
test_2_3Method · 0.80
test_7Method · 0.80
test_8Method · 0.80
test_9Method · 0.80
test_10Method · 0.80
test_11Method · 0.80
test_12Method · 0.80
test_21Method · 0.80
test_22Method · 0.80

Calls 1

atomic_exchange_and_addFunction · 0.85

Tested by

no test coverage detected