MayaFlux 0.3.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 294 of file SubsystemManager.cpp.

295{
296 auto handle = get_validated_handle(type);
297 if (!handle)
298 return;
299
300 if (handle->pre_process_hooks.erase(name) == 0) {
301 handle->post_process_hooks.erase(name);
302 }
303}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: