The nvinfer plugin implements a model-updated signal. Clients that initiate a model update by dsl_infer_config_file_set at runtime, should be able to add a listener function to to be notified when the update has completed.
/**
* @brief Callback typedef for Primary or Secondary GIE to notify clients when a
* model engine has been successfully updated.
* @param name name of the Primary or Secondary GIE calling this function.
* @param model_engine_file path to the new model engine file in use.
* @param[in] client_data opaque pointer to client's user data.
*/
typedef void (*dsl_infer_gie_model_update_listener_cb)(const wchar_t* name,
const wchar_t* model_engine_file, void* client_data);
New listener add/remove services
/**
* @brief Adds a model update listener callback to a named Primary or Secondary GIE.
* @param name name of the Primary or Secondary GIE to update.
* @param listener callback function to add.
* @param client_data opaque pointer to client data passed to the listener function.
* @return DSL_RESULT_SUCCESS on success, DSL_RESULT_INFER_RESULT otherwise.
*/
DslReturnType dsl_infer_gie_model_update_listener_add(const wchar_t* name,
dsl_infer_gie_model_update_listener_cb listener, void* client_data);
/**
* @brief Removes a model update listener callback to a named Primary or Secondary GIE.
* @param name name of the Primary or Secondary GIE to update.
* @param listener callback function to add.
* @param client_data opaque pointer to client data passed to the listener function.
* @return DSL_RESULT_SUCCESS on success, DSL_RESULT_INFER_RESULT otherwise.
*/
DslReturnType dsl_infer_gie_model_update_listener_remove(const wchar_t* name,
dsl_infer_gie_model_update_listener_cb listener);
The nvinfer plugin implements a
model-updated
signal. Clients that initiate a model update bydsl_infer_config_file_set
at runtime, should be able to add a listener function to to be notified when the update has completed.New symbolic constants
New callback typedef
New listener add/remove services