[#absl-Mutex-EnableInvariantDebugging]
= xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::EnableInvariantDebugging
:relfileprefix: ../../
:mrdocs:

Registers an invariant predicate to be checked for this `Mutex` when invariant debugging has been enabled globally&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EnableInvariantDebugging(
    void(* invariant)(void*),
    void* arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *invariant*
| The predicate to invoke, or null to disable checking&period;
| *arg*
| The argument passed to `invariant`&period;
|===


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