MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ unregister_process_hook()

void MayaFlux::Core::SubsystemManager::unregister_process_hook ( SubsystemType  type,
const std::string &  name 
)

Remove a previously registered processing hook.

Parameters
typeSubsystemType the hook is attached to
nameUnique identifier of the hook to remove

Removes the named hook from the specified subsystem's processing cycle.

Definition at line 309 of file SubsystemManager.cpp.

310{
311 auto handle = get_validated_handle(type);
312 if (!handle)
313 return;
314
315 if (handle->pre_process_hooks.erase(name) == 0) {
316 handle->post_process_hooks.erase(name);
317 }
318}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: