[#ValidationSignals-CallFunctionInValidationInterfaceQueue]
= xref:ValidationSignals.adoc[ValidationSignals]::CallFunctionInValidationInterfaceQueue
:relfileprefix: ../
:mrdocs:

Pushes a function to callback onto the notification queue, guaranteeing any callbacks generated prior to now are finished when the function is called&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CallFunctionInValidationInterfaceQueue(std::function&lt;void()&gt; func);
----

== Description

Be very careful blocking on func to be called if any locks are held &hyphen; validation interface clients may not be able to make progress as they often wait for things like cs&lowbar;main, so blocking until func is called with cs&lowbar;main will result in a deadlock (that DEBUG&lowbar;LOCKORDER will miss)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| Function to run once earlier callbacks have completed&period;
|===


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