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

Synopsis

Declared in <validationinterface.h>

void
CallFunctionInValidationInterfaceQueue(std::function<void()> func);

Description

Be very careful blocking on func to be called if any locks are held ‐ validation interface clients may not be able to make progress as they often wait for things like cs_main, so blocking until func is called with cs_main will result in a deadlock (that DEBUG_LOCKORDER will miss).

Parameters

Name

Description

func

Function to run once earlier callbacks have completed.

Created with MrDocs