Submits a user-defined function to be executed on the stream.
◆ VPIUserFunction
typedef VPIStatus(* VPIUserFunction) (void *) |
◆ vpiSubmitUserFunction()
#include <vpi/UserFunction.h>
Pushes a command that will invoke a custom host-side function after all prior commands have been processed.
The execution of commands submitted after this call is suspended until the callback is finished.
- Parameters
-
stream | [in] a stream handle |
func | [in] Pointer to the user function to be executed. |
userData | [in] pointer that will be passed unchanged to the user function |
- Returns
- an error code on failure else VPI_SUCCESS