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

Method count_inc

lib_acl_cpp/src/connpool/connect_pool.cpp:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void connect_pool::count_inc(bool exclusive) {
82 if (exclusive) {
83 lock_.lock();
84 }
85 ++count_;
86 ++refers_;
87 if (exclusive) {
88 lock_.unlock();
89 }
90}
91
92void connect_pool::count_dec(bool exclusive) {
93 if (exclusive) {

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected