aclmdlRIDestroyRegisterCallback
Note: This API is for trial use and may be changed in later versions. It is not available in production environments.
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Registers a callback function to be called when a model running instance is destroyed.
Prototype
1 | aclError aclmdlRIDestroyRegisterCallback(aclmdlRI modelRI, aclrtCallback func, void *userData) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
modelRI |
Input |
Model running instance. For details about the type definition, see aclmdlRI. |
func |
Input |
Callback function. Prototype: typedef void (*aclrtCallback)(void *userData); |
userData |
Input |
Pointer to the user data to be passed to the callback function. The value can be NULL, indicating that no additional data needs to be passed. |
Returns
0 on success; otherwise, failure. For details, see aclError.