[#wallet-WalletDatabase-m_refcount]
= xref:wallet.adoc[wallet]::xref:wallet/WalletDatabase.adoc[WalletDatabase]::m&lowbar;refcount
:relfileprefix: ../../
:mrdocs:

Counts the number of active database users to be sure that the database is not closed while someone is using it

== Synopsis

Declared in `&lt;wallet&sol;db&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::atomic&lt;int&gt; m&lowbar;refcount = &lcub;0&rcub;;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
