[#Chainstate-MempoolMutex]
= xref:Chainstate.adoc[Chainstate]::MempoolMutex
:relfileprefix: ../
:mrdocs:

Indirection necessary to make lock annotations work with an optional mempool&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;lock&lowbar;returned(this&hyphen;&gt;m&lowbar;mempool&hyphen;&gt;cs)&rsqb;&rsqb;
xref:RecursiveMutex.adoc[RecursiveMutex]*
MempoolMutex() const;
----

== Return Value

Pointer to the mempool&apos;s mutex, or nullptr if there is no mempool&period;


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