Home
last modified time | relevance | path

Searched refs:connectionCount_ (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dgeneric_kvdb.cpp33 connectionCount_(0), in GenericKvDB()
41 if (connectionCount_ > 0) { in ~GenericKvDB()
102 if (connectionCount_.load() == 1) { in ReleaseDBConnection()
170 connectionCount_ > 1) { in TryToDisableConnection()
206 connectionCount_.fetch_add(1, std::memory_order_seq_cst); in IncreaseConnectionCounter()
207 if (connectionCount_.load() > 0) { in IncreaseConnectionCounter()
215 int count = connectionCount_.fetch_sub(1, std::memory_order_seq_cst); in DecreaseConnectionCounter()
H A Dgeneric_kvdb.h187 std::atomic<int> connectionCount_; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_store.h192 std::atomic<int> connectionCount_ = 0; variable
H A Dsqlite_relational_store.cpp43 connectionCount_.fetch_add(1, std::memory_order_seq_cst); in IncreaseConnectionCounter()
44 if (connectionCount_.load() > 0) { in IncreaseConnectionCounter()
376 int count = connectionCount_.fetch_sub(1, std::memory_order_seq_cst); in DecreaseConnectionCounter()
423 if (connectionCount_.load() == 1) { in ReleaseDBConnection()