MCPcopy Create free account
hub / github.com/acl-dev/acl / count_dec

Method count_dec

lib_acl_cpp/src/connpool/connect_pool.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void connect_pool::count_dec(bool exclusive) {
93 if (exclusive) {
94 lock_.lock();
95 }
96 --count_;
97 --refers_;
98 if (exclusive) {
99 lock_.unlock();
100 }
101}
102
103void connect_pool::refer()
104{

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected